Lab completed

This commit is contained in:
Ilgar_Naghiyev
2020-03-04 14:25:55 +01:00
parent d039aafe78
commit 2cb1a8ffeb

View File

@@ -772,6 +772,7 @@ Important notes:
- `echo "---" >> /home/ansible/web.yml` - `echo "---" >> /home/ansible/web.yml`
**Configure the Playbook to Install `httpd` on the `web` Group** **Configure the Playbook to Install `httpd` on the `web` Group**
Using a text editor, such as vim, edit **/home/ansible/web.yml** to contain the following text block below the line containing "---": Using a text editor, such as vim, edit **/home/ansible/web.yml** to contain the following text block below the line containing "---":
``` ```
@@ -783,6 +784,7 @@ Using a text editor, such as vim, edit **/home/ansible/web.yml** to contain the
``` ```
**Configure the Playbook to Start and Enable the `httpd` Service on the `web` Group** **Configure the Playbook to Start and Enable the `httpd` Service on the `web` Group**
Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the following task block after the "install httpd task": Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the following task block after the "install httpd task":
``` ```
- name: start and enable httpd - name: start and enable httpd
@@ -790,6 +792,7 @@ Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the f
``` ```
**Configure the Playbook to Retrieve the Website from *http://repo.example.com/website.tgz* on Each Server in the `web` Group** **Configure the Playbook to Retrieve the Website from *http://repo.example.com/website.tgz* on Each Server in the `web` Group**
Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the following task block after the "start and enable httpd" task: Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the following task block after the "start and enable httpd" task:
``` ```
- name: retrieve website from repo - name: retrieve website from repo
@@ -797,6 +800,7 @@ Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the f
``` ```
**Configure the Playbook to Unarchive the Website into `/var/www/html` on All Servers in the `web` Group** **Configure the Playbook to Unarchive the Website into `/var/www/html` on All Servers in the `web` Group**
Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the following task block after the "retrieve website from repo" task: Using a text editor such as vim, edit **/home/ansible/web.yml** to contain the following task block after the "retrieve website from repo" task:
``` ```
- name: install website - name: install website