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 1 Question 56 Discussion

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

Create a file called adhoc.sh in /home/sandy/ansible which will use adhoc commands to set up a new repository. The name of the repo will be 'EPEL' the description 'RHEL8' the baseurl is 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp' there is no gpgcheck, but you should enable the repo.

* You should be able to use an bash script using adhoc commands to enable repos. Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

This is a great question! I'm surprised they didn't ask us to use the 'yum_repository' module instead of the 'ansible' command directly.
upvoted 0 times
...
Ashlyn
7 days ago
Haha, the script is almost perfect, but I think we need to add a 'reponame=EPEL' parameter to match the name specified in the question.
upvoted 0 times
...
Jame
9 days ago
The script looks good, but I would suggest adding a 'become: yes' parameter to the ansible command to ensure the task is executed with elevated privileges.
upvoted 0 times
...
Elden
15 days ago
This seems like a straightforward task. The provided script looks good, though I might add a 'state=present' parameter to ensure the repository is enabled.
upvoted 0 times
...
Tanesha
22 days ago
Yes, the bash script example given for enabling the repo makes it easier to understand the steps involved.
upvoted 0 times
...
Delsie
23 days ago
I agree, but the explanation provided for creating the repo using adhoc commands seems clear and helpful.
upvoted 0 times
...
Tanesha
24 days ago
I think creating the adhoc.sh file in /home/sandy/ansible to set up a new repository sounds challenging.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77