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 7 Question 74 Discussion

Posted by Floyd on Jan 26, 2026 at 01:50 PM

Create and run an Ansible ad-hoc command.

--> As a system administrator, you will need to install software on the managed

nodes.

--> Create a shell script called yum-pack.sh that runs an Ansible ad-hoc command to

create yum-repository on each of the managed nodes as follows:

--> repository1

-----------

1. The name of the repository is EX407

2. The description is "Ex407 Description"

3. The base URL is http://content.example.com/rhel8.0/x86_64/dvd/BaseOS/

4. GPG signature checking is enabled

5. The GPG key URL is http://content.example.com/rhel8.0/x86_64/dvd/RPM-GPG-KEYredhat-

release

6. The repository is enabled

--> repository2

-----------

1. The name of the repository is EXX407

2. The description is "Exx407 Description"

3. The base URL is http://content.example.com/rhel8.0/x86_64/dvd/AppStream/

4. GPG signature checking is enabled

5. The GPG key URL is http://content.example.com/rhel8.0/x86_64/dvd/ RPM-GPG-KEYredhat-

release

6. The repository is enabled

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
26 comments · newest first
DO
Domonique 4 months ago
Don't forget the GPG key URL! It's crucial for security.
DE
Deandrea 4 months ago
I think using `ansible all -m yum_repository` is key here.
RA
Rana 4 months ago
Agreed! Ansible ad-hoc commands can be confusing.
CA
Catalina 5 months ago
This question is tricky! Need to remember the syntax.
RO
Rosann 6 months ago
Totally agree, double-checking URLs is key!
RA
Raymon 6 months ago
I think EXX407 is a typo, should be EX407?
MA
Ma 6 months ago
Wait, are we sure those URLs are correct?
ST
Stevie 7 months ago
GPG checking is a must, good call!
AU
Audra 7 months ago
Just ran the ad-hoc command, worked like a charm!
CA
Candida 7 months ago
Haha, "EXX407" - someone's got a sense of humor! I'm on it, let's get these repos set up.
LU
Luke 7 months ago
Wait, is this a trick question? What if I accidentally enable the wrong repository? Better double-check my work.
SU
Sunny 7 months ago
Hmm, creating yum repositories with Ansible? Sounds like a piece of cake. I'm ready to tackle this.
LA
Lavonna 7 months ago
The question provides clear instructions on how to set up the repositories. I think I can handle this.
TH
Theresia 8 months ago
This looks like a straightforward Ansible ad-hoc command to create two yum repositories. I'd give it a try.
QU
Queen 8 months ago
I remember that the base URL needs to be correct, or the repositories won't work. I hope I can get that part right!
VA
Vallie 8 months ago
I feel like I need to double-check how to enable GPG checking in the repository configuration. It seems important for security.
MA
Malcom 9 months ago
I think I did a similar question where we had to create a yum repository, but I can't recall the exact syntax for the ad-hoc command.
AS
Ashlyn 9 months ago
I remember practicing ad-hoc commands, but I’m not sure how to structure the shell script for this specific task.
SO
Socorro 9 months ago
The key here is to create a reusable shell script that can be easily run on the managed nodes to set up the required yum repositories. I'll need to make sure the script is well-documented and easy for other admins to understand and use.
WA
Wade 9 months ago
This is a good test of my Ansible skills. I'll need to pay close attention to the repository details and make sure I get the URLs and GPG key settings correct. I'm feeling confident I can handle this.
DE
Delpha 9 months ago
Okay, I've got this. I'll use the `ansible` command with the `yum_repository` module to create the two repositories as specified in the question. I'll also need to make sure the shell script is executable and run it on the managed nodes.
TH
Thomasena 10 months ago
Hmm, I'm a bit unsure about the specifics of the Ansible ad-hoc command syntax and how to properly configure the yum repositories. I'll need to review the Ansible documentation to make sure I get this right.
EU
Eura 10 months ago
This looks like a straightforward Ansible ad-hoc command question. I'll need to create a shell script that runs the necessary Ansible commands to set up the two yum repositories on the managed nodes.
CH
Charlette 3 months ago
↳ replying to Eura
Don't forget to enable GPG checking in the command!
ER
Erasmo 4 months ago
↳ replying to Eura
Make sure to include the right URLs for both repositories.
AS
Ashlyn 4 months ago
↳ replying to Eura
Sounds simple enough. Just need to write the script correctly.
0/2000 characters

Save Cancel