- Install Virtualbox
- Install vagrant
- Install ansible
- Start the VMs using vagrant
git clone https://github.com/barais/demoAnsible
cd vagrant
vagant up
# Check that the VM are up
# Check that you can login using ssh (ssh [email protected] # password: vagrant)
Run the playbook
ansible-playbook playbook.yml -i hosts
Try to access http://192.168.56.141/index.php
- Kill the VMs and remove them.
- Use vagrant to recreate them from scratch
git clone https://github.com/barais/demoAnsible
cd vagrant
vagant up
# Check that the VM are up
# Check that you can login using ssh (ssh [email protected] # password: vagrant)
Run the playbook
ansible-playbook site.yml -i hosts
Try to access http://192.168.56.141/index.php