Skip to content

samnoon1971/Vagrant-Playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant-Playground

Vagrantfiles for experimentation

Cloning the repository

git clone https://github.com/samnoon1971/Vagrant-Playground.git

Environment Setup

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

Releases

No releases published

Packages

No packages published