Changes

Jump to: navigation, search

OPS635-lab-ansible-Summer-2019

135 bytes added, 12:48, 31 May 2019
Investigation 2: Creating an Ansible Playbook
Create an Ansible playbook (named lab2.yaml) that will:
* Run on both ansible2 and ansible3.
* Create user '''<senecaid>''' with a password, and add it to new group '''lab2'''. If your VM already has that account, that's fine, but the play should still run and try to add it.
* Install, enable, and start apache.
* Insert a persistent firewall exception for port 80.
* Replace the landing webpage ''/var/www/html/index.html'' on each VM with your own modified version of ''index.html''(Similar to what you did in the Docker lab.)
* Each task should be '''idempotent''': That is, the results on the VMs are the same no matter how many times you run your playbook.
** (ie. Running your playbook 3 times shouldn't create 3 firewall exceptions on port 80)

Navigation menu