Vagrantfiles for experimentation
git clone https://github.com/samnoon1971/Vagrant-Playground.git
Note: You must have Virtualbox installed on your machine.
To provision VirtualBox VMs using Vagrant:
vagrant up
To add ssh
configs of virtual machines:
vagrant ssh-config >> ~/.ssh/known_hosts
To shutdown virtual machines using Vagrant:
vagrant halt
To build custom Ansible docker image:
docker build -t abrar/ansible:1.0.0 .
To run Ansible Configurations for LAMP server on Ubuntu VMs:
docker run --rm -v "$(pwd)":/ansible -w /ansible abrar/ansible:1.0.0 ansible-playbook -i provision-6-ubuntu-vms/lamp_simple/hosts provision-6-ubuntu-vms/lamp_simple/site.yml