This is an example of using Ansible to build a Vagrant box for development.
Please see the Readme for more information.
Chris Mague a9965c57ca docs | 7 years ago | |
---|---|---|
ansible | 7 years ago | |
.gitignore | 7 years ago | |
README.md | 7 years ago | |
Vagrantfile | 7 years ago |
This vagrant is intended to be an example to get started using Ansible to provision your Development environment on vagrant.
Install vagrant and virtualbox on your machine
vagrant up
The first run might take a while
Edit ansible/requirements.yml file it contains a few examples of different ways to fetch roles
vagrant provision
DANGER This will delete all of the files in the ansible/roles directory to ensure fresh roles are downloaded
To override any variable in a role, usually located in ansible/roles//defaults/main.yml simply add an entry with the same name to ansible/vars/main.yml
Add any ports you would like to forward from your local machine into the Vagrant box in the Vagrantfile
# Forwarding Ports - you should add any necessary ports here
config.vm.network "forwarded_port", guest: 2112, host: 2112