CORRECT TEXT

Posted by: Pdfprep Category: EX407 Tags: , ,

CORRECT TEXT

Create a role called sample-apache and store it in /home/bob/ansible/roles.

The role should satisfy the following requirements:

*In the role, install and enable httpd. Also enable the firewall to allow http. Also run the template

*index.html.j2 and make sure this runs Create a template index.html.j2 that displays "Welcome to the server HOSTNAME"

In a play called apache.yml in /home/bob/ansible/ run the sample-apache role.

Answer: /home/sandy/ansible/apache.yml

RedHat-EX4075_1

/home/sandy/ansible/roles/sample-apache/tasks/main.yml

RedHat-EX4076_2

/home/sandy/ansible/roles/sample-apache/templates/index.html.j2

RedHat-EX4076_1

In /home/sandy/ansible/roles/sample-apache/handlers/main.yml

RedHat-EX4076_4

Leave a Reply

Your email address will not be published.