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:

Katina
3 days ago
I'm pretty sure the correct answer is not going to be found in the 'sample-apache' tasks file. Let's focus on the actual task at hand.
upvoted 0 times
...
Cortney
6 days ago
Haha, the question is about Ansible and /etc/motd, not about Apache! Someone's a bit confused here.
upvoted 0 times
...
Mi
13 days ago
The question is clear, it asks to create a playbook that updates the /etc/motd file with different messages based on the host group. The answer options are not addressing the actual question.
upvoted 0 times
...
Madalyn
14 days ago
I believe we should create separate tasks for each host group in the playbook.
upvoted 0 times
...
Chau
17 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
Tammy
4 days ago
I think the playbook should replace the content of /etc/motd with the specified text based on the host group.
upvoted 0 times
...
...
Eve
20 days ago
I agree, we need to use ansible facts to display the FQDN of each host.
upvoted 0 times
...
Madalyn
24 days ago
I think this question is challenging.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77