New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX294 Exam - Topic 17 Question 12 Discussion

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

Modify file content.

------------------------

Create a playbook called /home/admin/ansible/modify.yml as follows:

* The playbook runs on all inventory hosts

* The playbook replaces the contents of /etc/issue with a single line of text as

follows:

--> On hosts in the dev host group, the line reads: ''Development''

--> On hosts in the test host group, the line reads: ''Test''

--> On hosts in the prod host group, the line reads: ''Production''

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
France
4 months ago
This is exactly what I needed for my setup!
upvoted 0 times
...
Izetta
4 months ago
Nice, but what if a host isn't in any group?
upvoted 0 times
...
Callie
4 months ago
Wait, does it really overwrite /etc/issue? That seems risky.
upvoted 0 times
...
Daniel
4 months ago
Totally agree, this is a solid playbook.
upvoted 0 times
...
Scot
4 months ago
Looks good, but make sure to check the syntax!
upvoted 0 times
...
Shelton
5 months ago
I recall that we need to ensure the playbook runs on all hosts, but I’m not clear on how to structure the `hosts` line correctly.
upvoted 0 times
...
Johnson
5 months ago
I’m a bit confused about the syntax for the `when` condition. Did we use `inventory_hostname` or something else in the examples?
upvoted 0 times
...
Lucille
5 months ago
I practiced a similar question where we had to modify a file based on host groups, so I think I can apply that here.
upvoted 0 times
...
Larue
5 months ago
I think I remember needing to use the `copy` module, but I'm not sure if I should use `lineinfile` instead for this task.
upvoted 0 times
...
Cherry
5 months ago
I'm pretty sure the answer is C. Activity codes require skillsets to be assigned, right?
upvoted 0 times
...
Rosendo
5 months ago
Based on my understanding, the "Linux x86 with 64 bit JVM" option is the correct one. The "x86" refers to the processor architecture, and the "64 bit JVM" specifies that it's a 64-bit distribution, which is what we need for our 64-bit Linux system. I'm fairly confident in this answer.
upvoted 0 times
...

Save Cancel