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 EX294 Exam - Topic 11 Question 20 Discussion

Posted by Marge on Dec 24, 2022 at 09:36 AM

Create a playbook called issue.yml in /home/sandy/ansible which changes the file /etc/issue on all managed nodes: If host is a member of (lev then write "Development" If host is a member of test then write "Test" If host is a member of prod then write "Production"

Suggested Answer: A

Get Premium EX294 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
BI
Billi 1 year ago
Just a heads up, make sure to test it before deploying!
CA
Casey 1 year ago
I think it should work fine as long as the group membership is clear.
FE
Felicitas 1 year ago
Wait, what if a host belongs to multiple groups?
AD
Adria 1 year ago
Totally agree, it's a smart way to manage environments!
LI
Lizette 1 year ago
This playbook will definitely help with environment identification.
JA
Janine 1 year ago
I believe we also need to ensure that the playbook runs on all managed nodes, but I can't recall if we need to specify the inventory file explicitly.
MI
Micheal 1 year ago
I’m a bit confused about how to set the correct value for `/etc/issue` based on the group. Do I need to use a variable for that?
LA
Lavonna 1 year ago
This seems similar to a practice question we did about modifying files based on host groups. I think we used the `lineinfile` module for that.
DA
Davida 1 year ago
I think I remember needing to use the `when` condition to check the host group, but I'm not entirely sure how to structure that in the playbook.
ER
Erick 1 year ago
Okay, I've got this. The key is to focus on the three correct statements. I remember learning about the Search & Reporting App in class, so I'm confident I can nail this.
LU
Luis 1 year ago
The key here is to focus on the specific functionality of the Payables System Options form. I think I remember learning about the options it provides, so I'll try to apply that knowledge to determine the correct answer.
0/2000 characters

Save Cancel