Skip to content

michalkacprzyk/vagrant-ansible-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-ansible-playground

What is?

Automated creation of multiple Virtual Machines, connected with a private network, a simple DNS server and passwordless ssh.

What for?

Can be used as a playground for practicing ansible or similar tools. It was inspired by quite a heavy download, originally needed by Ansible Automation Masterclass Udemy course

How to?

Assuming that VirtualBox and Vagrant are installed, and we are in the cloned directory of this repository

# Peruse the Vagrantfile, making sure that it looks quite sensible
vim Vagrantfile

# Create the entire playground
vagrant up

# Connect to the control host
vagrant ssh ubuntuc

# Stop the entire playground
vagrant halt

# Destroy (it is easy enough to recreate)
vagrant destroy

What if?

In my case vagrant up ends after 9 minutes with the following message:

ubuntuc: ubuntu1 | SUCCESS => {"changed": false, "ping": "pong"}
ubuntuc: ubuntu2 | SUCCESS => {"changed": false, "ping": "pong"}
ubuntuc: centos1 | SUCCESS => {"changed": false, "ping": "pong"}
ubuntuc: centos2 | SUCCESS => {"changed": false, "ping": "pong"}
ubuntuc: centos3 | SUCCESS => {"changed": false, "ping": "pong"}
ubuntuc: ubuntu3 | SUCCESS => {"changed": false, "ping": "pong"}

if it is different for you, have fun bug-hunting!

About

Create a set of playground VMs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published