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:

Lauran
1 months ago
Wait, did someone say 'chmod 0777'? That's a bit overkill, don't you think? Let's keep the permissions a bit more secure, shall we?
upvoted 0 times
...
Callie
1 months ago
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
1 months 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
Skye
9 days ago
Thanks for pointing that out. I'll make sure to include 'reponame=EPEL' in the script.
upvoted 0 times
...
Joni
23 days ago
Good catch! Let's add 'reponame=EPEL' to the adhoc.sh script.
upvoted 0 times
...
...
Jame
2 months 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
Gary
13 days ago
Good idea, I'll include 'become: yes' to ensure elevated privileges for the task.
upvoted 0 times
...
Devora
15 days ago
Thanks for the suggestion! I'll make sure to add 'become: yes' to the ansible command.
upvoted 0 times
...
...
Elden
2 months 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
Sharita
5 days ago
User 4: Good point, that would make sure everything is set up correctly.
upvoted 0 times
...
Lenna
12 days ago
User 3: I might add a 'state=present' parameter to ensure the repository is enabled.
upvoted 0 times
...
Aleisha
1 months ago
User 2: Yeah, the provided script looks good.
upvoted 0 times
...
Burma
1 months ago
User 1: This seems like a straightforward task.
upvoted 0 times
...
...
Tanesha
2 months ago
Yes, the bash script example given for enabling the repo makes it easier to understand the steps involved.
upvoted 0 times
...
Delsie
2 months ago
I agree, but the explanation provided for creating the repo using adhoc commands seems clear and helpful.
upvoted 0 times
...
Tanesha
2 months 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