IAC configuration playbook to stack a PHP, Apache, MySQL Server database, and a Wordpress template instance.
- virtualbox >= 5.2
- vagrant >= 2.2.9
- ansible >= 2.9.9
Create a ssh key pair named "vagrant_id_rsa" and "vagrant_id_rsa.pub" and add it to the project root folder
ssh-keygen -t rsa
Move the public key to ./ssh-keys
mv vagrant_id_rsa.pub ./ssh-keys/vagrant_id_rsa.pub
Source environment variables
. ./.env
Run infrastructure setup
vagrant up
Run ansible playbook
ansible-playbook $PROVISIONING_PATH -i $HOSTS_PATH