Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat Exam EX294 Topic 8 Question 47 Discussion

Actual exam question for RedHat's EX294 exam
Question #: 47
Topic #: 8
[All EX294 Questions]

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.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Destiny
6 days ago
I agree, setting up all those tasks in ansible roles can be tricky.
upvoted 0 times
...
Shanda
12 days ago
I think this question is quite challenging.
upvoted 0 times
...

Save Cancel