ansible roles development environment using vagrant
virtualbox (latest)
vagrant (latest)
ansible (latest)
memory: 2048 # ram for each vm
cpus: 1 # cpus for each vm
nodes: 2 # number of vms
box: centos/7 # vagrant box for each vm
playbook: playbook.yml # playbook used to run role(s)
Note: vagrant automatically assigns VM hostnames and private IPs like this:
node1 - 192.168.77.21
node2 - 192.168.77.22
...
- create role and put it in
roles/
directory. - create custom playbook (e.g.
playbook.yml
) to test your role. - change
config.yml
variables for your needs. - run command
vagrant up
and wait for provisioning.
Note: do not try to change anything in Vagrantfile