Sample programs and examples for DevOps Training
Contains examples of Ansible playbooks
Please use the instructions to setup environment at:
Just copy paste the instructions from lab-01 folder, it should work
cd ansible/lab-02/
ansible-playbook java-nginx.yml
cd ansible/lab-03/
ansible-playbook web-page.yml
cd ansible/lab-04/
ansible-playbook deploy-web-content.yml
cd ansible/lab-05/
ansible-playbook deploy-web-content.yml
Lab to create instances on AWS.
sudo yum install python-pip -y
sudo pip install boto
cd ansible/lab-06/
ansible-playbook create_ec2_instance.yml
To Terminate the instance ( You will need the instance id either from AWS console, or output from the create playbook)
cd ansible/lab-06/
ansible-playbook terminate_ec2_instance.yml
Generate dynamic inventory and run playbooks
cd ansible/lab-07/
python dynamic_inventory.py <aws-access-key> <aws-access-secret-key>
Generate dynamic inventory and install docker followed by mssql docker image
ansible-playbook lab-08/running_roles.yml