I want to set up bedrock-ansible on a local Ubuntu server on my home network and be able to work on development on a different Windows based PC or sometimes my Macbook. Does anyone have some best practices to do this? I’d like to do it this way to just leave some dev environments running all the time and just do some work and drop it in easily.
All you have to do is copy the example
hosts.example found here to just
hosts and change that IP to the one of your remote server.
Then you can just run
ansible-playbook site.yml -i hosts.
This just runs
site.yml like Vagrant does on that hosts file (your remote server since there’s only 1 entry in it). This is manually duplicating exactly what Vagrant does in the background. Vagrant auto generates its own hosts file and runs the playbook against it.