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

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

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Malcom
4 days 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.
upvoted 0 times
...
Ashlyn
10 days ago
I remember practicing ad-hoc commands, but I’m not sure how to structure the shell script for this specific task.
upvoted 0 times
...
Socorro
15 days 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.
upvoted 0 times
...
Wade
20 days 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.
upvoted 0 times
...
Delpha
25 days 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.
upvoted 0 times
...
Thomasena
1 month 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.
upvoted 0 times
...
Eura
1 month 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.
upvoted 0 times
...

Save Cancel