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 2 Question 82 Discussion

Use Ansible Galaxy with a requirements file called /home/admin/ansible/roles/install.yml to download and install roles to /home/admin/ansible/roles from thefollowing URLs:http:// classroom.example.com /role1.tar.gz The name of this role should be balancerhttp:// classroom.example.com /role2.tar.gz The name of this role should be phphello
A) Explanation: Solution as: # pwd /home/admin/ansible/roles # vim install.yml --- - src: http://classroom.example.com/role1.tar.gz name: balancer - src: http://classroom.example.com/role2.tar.gz name: phphello :wq! # pwd /home/admin/ansible # ansible-galaxy install -r roles/install.yml -p roles

RedHat EX294 Exam - Topic 2 Question 82 Discussion

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

Use Ansible Galaxy with a requirements file called /home/admin/ansible/roles/

install.yml to download and install roles to /home/admin/ansible/roles from the

following URLs:

http:// classroom.example.com /role1.tar.gz The name of this role should be balancer

http:// classroom.example.com /role2.tar.gz The name of this role should be phphello

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Derick
5 hours ago
I think the `-p` option is for specifying the installation path, but I’m a bit uncertain if I need to include the trailing slash in the path.
upvoted 0 times
...
Abel
5 days ago
I feel like I might have mixed up the order of the commands; did we run `ansible-galaxy install` from the roles directory or the main ansible directory?
upvoted 0 times
...
Annett
11 days ago
I practiced something similar last week, but I can't recall if I need to specify the path correctly when using ansible-galaxy.
upvoted 0 times
...
Casie
16 days ago
I think I remember that the requirements file needs to be in YAML format, but I'm not sure about the exact syntax for the role names.
upvoted 0 times
...

Save Cancel