Install dependencies
yum install gcc libvirt-devel ruby-develInstall Vagrant
wget https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.rpm
yum install vagrant_2.2.9_x86_64.rpm
vagrant plugin install vagrant-libvirtNOTE: Some older Centos versions require newer binutils package:
yum update binutils.
Add Centos box
vagrant box add centos/7 --provider=libvirtInstall Ansible
yum install epel-release
yum install ansibleThe simple deployment can be done with the following command
vagrant upTo deploy multiple environments create multiple config files
CONFIG=config.yml vagrant up