RedHat Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 EX294 Question # 6 Topic 1 Discussion

RedHat Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 EX294 Question # 6 Topic 1 Discussion

EX294 Exam Topic 1 Question 6 Discussion:
Question #: 6
Topic #: 1

Create a role called sample-apache in /home/sandy/ansible/roles that enables and starts httpd, enables and starts the firewall and allows the webserver service. Create a template called index.html.j2 which creates and serves a message from /var/www/html/index.html Whenever the content of the file changes, restart the webserver service.

Welcome to [FQDN] on [IP]

Replace the FQDN with the fully qualified domain name and IP with the ip address of the node using ansible facts. Lastly, create a playbook in /home/sandy/ansible/ called apache.yml and use the role to serve the index file on webserver hosts.


Get Premium EX294 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.