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
30 comments · newest first
VI
Vinnie
7 hours ago
I think I got it though.
EL
Elsa
5 days ago
Yeah, I feel the same.
LU
Lucy
11 days ago
This question is tricky.
LO
Loren
16 days ago
Let’s ace this exam together!
DE
Delsie
21 days ago
I’m feeling a bit more confident now.
LI
Linsey
26 days ago
Good idea! That could save time.
MA
Mable
1 month ago
I’ll write down the commands for reference.
LO
Loren
1 month ago
Just focus on the syntax.
DE
Delsie
1 month ago
I hope I can recall the commands.
LI
Linsey
2 months ago
Using ansible-galaxy is a good approach.
MA
Mable
2 months ago
I’ll remember to check the paths.
LO
Loren
2 months ago
It’s simple once you get the hang of it.
DE
Delsie
2 months ago
I like the structure of the install.yml file.
LI
Linsey
2 months ago
The URLs are clear, that helps.
MA
Mable
2 months ago
I’ll practice more before the exam.
LO
Loren
3 months ago
Indentation is crucial in YAML.
DE
Delsie
3 months ago
I feel like I might mess up the indentation.
LI
Linsey
3 months ago
Just follow the example closely.
MA
Mable
3 months ago
I’m confused about the YAML format.
LO
Loren
3 months ago
I think it’s straightforward.
DE
Delsie
3 months ago
This question is tricky.
NO
Nobuko
4 months ago
I thought roles had to be in a specific format, not just any archive.
ST
Stanton
4 months ago
Yup, that's how you install roles!
CR
Cristy
4 months ago
Wait, does Ansible Galaxy really support tar.gz files?
SY
Sylvia
4 months ago
Totally agree, make sure to check the URLs!
VA
Van
4 months ago
Just a heads up, the paths need to be correct!
DE
Derick
4 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
5 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
5 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
5 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.