Next Question >>

Question 1/19

Create a role called apache in "/home/admin/ansible/roles" with the following
requirements:
--> The httpd package is installed, enabled on boot, and started.
--> The firewall is enabled and running with a rule to allow access to the web server.
--> template file index.html.j2 is used to create the file /var/www/html/index.html
with the output:
Welcome to HOSTNAME on IPADDRESS
--> Where HOSTNAME is the fqdn of the managed node and IPADDRESS is the IP-Address of
the managed node.
note: you have to create index.html.j2 file.
--> Create a playbook called httpd.yml that uses this role and the playbook runs on
hosts in the webservers host group.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (19q)
Question 1: Create a role called apache in "/home/admin/ansible/roles" w...
Question 2: Create a role called sample-apache in /home/sandy/ansible/ro...
Question 3: Create a playbook called packages.yml that: ----------------...
Question 4: Create the users in the file usersjist.yml file provided. Do...
Question 5: Create a file called requirements.yml in /home/sandy/ansible...
Question 6: Install and configure ansible User bob has been created on y...
Question 7: Install the RHEL system roles package and create a playbook ...
Question 8: Install and configure ansible User sandy has been created on...
Question 9: Create an ansible vault password file called lock.yml with t...
Question 10: Create a playbook called webdev.yml in 'home/sandy/ansible. ...
Question 11: Create a file called requirements.yml in /home/sandy/ansible...
Question 12: Create a file called specs.empty in home/bob/ansible on the ...
Question 13: Create a playbook called hwreport.yml that produces an outpu...
Question 14: Create a file called requirements.yml in /home/sandy/ansible...
Question 15: Create a playbook called timesvnc.yml in /home/sandy/ansible...
Question 16: Create a playbook called regulartasks.yml which has the syst...
Question 17: In /home/sandy/ansible/ create a playbook called logvol.yml....
Question 18: Create a playbook called issue.yml in /home/sandy/ansible wh...
Question 19: Create a playbook /home/bob /ansible/motd.yml that runs on a...