Open main menu

CDOT Wiki β

Changes

OPS635-lab-ansible-Summer-2019

261 bytes added, 11:09, 27 May 2019
Investigation 2: Creating an Ansible Playbook
==Investigation 2: Creating an Ansible Playbook==
*Convert the installation script/puppet manifest from the previous labs into Create an Ansible playbook that will configure "* Run on all three nested VMs.* Install, enable, and start apache.* Insert a CentOS persistent firewall exception for port 80.* Replace the landing webpage on each VM and another non-CentOS VM as Nagios servers performing with your own modified version of ''index.html''.* Each task should be '''idempotent''': That is, the results on the VMs are the same checks as in lab 1no matter how many times you run your playbook.** (ie.Running your playbook 3 times shouldn't create 3 firewall exceptions on port 80) 
==Investigation 3: Applying a Playbook==
*Use the ansible-playbook command to execute your play on both VMs in the same play. If anything goes wrong, fix it and re-run the play. Continue doing so until the play runs successfully.