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 Exam EX294 Topic 5 Question 62 Discussion

Actual exam question for RedHat's EX294 exam
Question #: 62
Topic #: 5
[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:

Irving
17 days ago
I bet the person who wrote this script has a Ph.D. in 'Ansible Awesomeness'. I mean, who else would come up with such a slick solution? Kudos to them!
upvoted 0 times
...
Terrilyn
18 days ago
This is exactly the kind of task I was hoping to learn about. I can see how using Ansible ad-hoc commands can make our lives as sysadmins much easier. Time to start practicing!
upvoted 0 times
...
Brande
26 days ago
Haha, I love the idea of running 'yum repolist all' at the end to verify that everything worked as expected. It's like a built-in quality check!
upvoted 0 times
Jerry
2 days ago
Carmela: Plus, it gives you peace of mind knowing everything is set up as intended.
upvoted 0 times
...
Carmela
3 days ago
User 2: Definitely, it's always good to have a verification step in place.
upvoted 0 times
...
Verda
20 days ago
User 1: I agree, it's a smart way to make sure the repositories were created correctly.
upvoted 0 times
...
...
Elke
1 months ago
Hmm, I wonder if there's a way to make the script more dynamic, so we can easily add or modify the repo details without having to update the script itself. Maybe using a config file or something?
upvoted 0 times
Virgie
3 days ago
User1
upvoted 0 times
...
Natalya
18 days ago
User2
upvoted 0 times
...
Dominga
27 days ago
User1
upvoted 0 times
...
...
Elke
2 months ago
Wow, this is a great way to automate the creation of Yum repositories across multiple nodes. I like how the script uses Ansible ad-hoc commands to make it easy to deploy and manage the repos.
upvoted 0 times
Tammara
1 months ago
Absolutely, it saves a lot of time and ensures consistency across all nodes.
upvoted 0 times
...
...
Ellen
2 months ago
I feel confident about running the shell script yum-pack.sh as it simplifies the task of creating and enabling repositories on multiple nodes.
upvoted 0 times
...
Meaghan
2 months ago
I agree with you, Omer. It helps in automating the process and ensures consistency across all managed nodes.
upvoted 0 times
...
Omer
2 months ago
I think creating the Ansible ad-hoc command for setting up yum repositories is important for managing nodes efficiently.
upvoted 0 times
...

Save Cancel