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

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
Luke
1 day ago
Wait, is this a trick question? What if I accidentally enable the wrong repository? Better double-check my work.
upvoted 0 times
...
Sunny
6 days ago
Hmm, creating yum repositories with Ansible? Sounds like a piece of cake. I'm ready to tackle this.
upvoted 0 times
...
Lavonna
11 days ago
The question provides clear instructions on how to set up the repositories. I think I can handle this.
upvoted 0 times
...
Theresia
17 days ago
This looks like a straightforward Ansible ad-hoc command to create two yum repositories. I'd give it a try.
upvoted 0 times
...
Queen
22 days 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!
upvoted 0 times
...
Vallie
27 days ago
I feel like I need to double-check how to enable GPG checking in the repository configuration. It seems important for security.
upvoted 0 times
...
Malcom
2 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.
upvoted 0 times
...
Ashlyn
2 months 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
2 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.
upvoted 0 times
...
Wade
2 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.
upvoted 0 times
...
Delpha
2 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.
upvoted 0 times
...
Thomasena
3 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.
upvoted 0 times
...
Eura
3 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.
upvoted 0 times
...

Save Cancel