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:

Keshia
1 months ago
Wait, so we're supposed to create a playbook to manage the message of the day? Sounds like a real party trick for the sysadmins!
upvoted 0 times
Cortney
18 days ago
Using ansible facts to display the FQDN adds a nice touch to the playbook.
upvoted 0 times
...
Levi
19 days ago
It's a cool way to personalize the welcome message based on the type of server.
upvoted 0 times
...
Carylon
23 days ago
Yes, we need to create a playbook to manage the message of the day on different host groups.
upvoted 0 times
...
...
Katina
1 months 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
Lashandra
3 days ago
Let's make sure the line in the motd file is correct for each host group.
upvoted 0 times
...
Kallie
13 days ago
We can use ansible facts to display the FQDN of each host.
upvoted 0 times
...
Alpha
18 days ago
Yes, we need to replace the content of /etc/motd with the correct text for each host group.
upvoted 0 times
...
Lang
20 days ago
I think we should focus on the playbook in /home/bob/ansible/motd.yml.
upvoted 0 times
...
...
Cortney
1 months ago
Haha, the question is about Ansible and /etc/motd, not about Apache! Someone's a bit confused here.
upvoted 0 times
...
Mi
2 months 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
Brittni
26 days ago
Yes, and we should replace the existing content of /etc/motd with specific messages for each host group.
upvoted 0 times
...
Maybelle
27 days ago
I think we need to use ansible facts to display the FQDN of each host.
upvoted 0 times
...
...
Madalyn
2 months ago
I believe we should create separate tasks for each host group in the playbook.
upvoted 0 times
...
Chau
2 months 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
Ilona
29 days ago
Make sure the playbook is named 'motd.yml' and is located in /home/bob/ansible/
upvoted 0 times
...
Herman
1 months ago
The line should say 'Welcome to Dev Server FQDN' on dev hosts, 'Welcome to Apache Server FQDN' on webserver hosts, and 'Welcome to MySQL Server FQDN' on database hosts.
upvoted 0 times
...
Marcos
1 months ago
Yes, it should display the FQDN of each host using ansible facts.
upvoted 0 times
...
Tammy
1 months 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
2 months ago
I agree, we need to use ansible facts to display the FQDN of each host.
upvoted 0 times
...
Madalyn
2 months ago
I think this question is challenging.
upvoted 0 times
...

Save Cancel