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
Suggested Answer: A
Get Premium EX294 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
21 comments · newest first
LI
Linsey
2 days ago
Using ansible-galaxy is a good approach.
MA
Mable
7 days ago
I’ll remember to check the paths.
LO
Loren
12 days ago
It’s simple once you get the hang of it.
DE
Delsie
17 days ago
I like the structure of the install.yml file.
LI
Linsey
22 days ago
The URLs are clear, that helps.
MA
Mable
28 days ago
I’ll practice more before the exam.
LO
Loren
1 month ago
Indentation is crucial in YAML.
DE
Delsie
1 month ago
I feel like I might mess up the indentation.
LI
Linsey
1 month ago
Just follow the example closely.
MA
Mable
2 months ago
I’m confused about the YAML format.
LO
Loren
2 months ago
I think it’s straightforward.
DE
Delsie
2 months ago
This question is tricky.
NO
Nobuko
2 months ago
I thought roles had to be in a specific format, not just any archive.
ST
Stanton
2 months ago
Yup, that's how you install roles!
CR
Cristy
2 months ago
Wait, does Ansible Galaxy really support tar.gz files?
SY
Sylvia
3 months ago
Totally agree, make sure to check the URLs!
VA
Van
3 months ago
Just a heads up, the paths need to be correct!
DE
Derick
3 months 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.
AB
Abel
3 months 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?
AN
Annett
3 months ago
I practiced something similar last week, but I can't recall if I need to specify the path correctly when using ansible-galaxy.
CA
Casie
4 months 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.