Vagrant setup which provides an Ansible environment with EC2 provisioning support.
- Clone this project to your local machine;
- Run
$ vagrant up
; - Login to your Vagrant machine
$ vagrant ssh
; - You'll find your home directory has been mapped to
/home/host-machine/
; - Run whatever Ansible playbook/commands you like.
If you are using AWS then make sure you source the environment variables:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
Vagrant is setup by default to use the latest stable release of Ansible. If you want the development branch then run $ vagrant up development
, remember to use the machine name as required, e.g. $ vagrant ssh development
. The development machine will take a while to download all the dependencies, but for your wait you get bleeding edge functionality. Once the functionality you require has made release, just destroy the development machine and revert back to stable.