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 9 Question 44 Discussion

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

Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following: The playbook should replaee any existing content of/etc/motd in the following text. Use ansible facts to display the FQDN of each host

On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".

On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".

On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Madalyn
10 hours ago
I believe we should create separate tasks for each host group in the playbook.
upvoted 0 times
...
Chau
3 days ago
The question is asking for a playbook named 'motd.yml' that runs on all inventory hosts, not 'apache.yml'. The code provided is not relevant.
upvoted 0 times
...
Eve
6 days ago
I agree, we need to use ansible facts to display the FQDN of each host.
upvoted 0 times
...
Madalyn
10 days ago
I think this question is challenging.
upvoted 0 times
...

Save Cancel