Create a file called requirements.yml in /home/sandy/ansible/roles to install two roles. The source for the first role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. The roles should be installed in /home/sandy/ansible/roles.
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
11 comments · newest first
CA
Carin
1 year ago
I thought you needed to specify versions too?
GO
Goldie
1 year ago
Yup, ansible-galaxy install command is spot on!
BR
Broderick
1 year ago
Wait, are both roles really from geerlingguy? Seems odd.
DE
Delila
1 year ago
Totally agree, that's the way to do it!
LE
Lezlie
1 year ago
Just create requirements.yml in the right folder!
SA
Salome
1 year ago
I remember running the ansible-galaxy command, but I can't recall if the -p flag is necessary for specifying the path.
PA
Paz
1 year ago
I feel like I might be mixing up the paths. Is it definitely /home/sandy/ansible/roles for the installation?
MA
Mabelle
1 year ago
I practiced a similar question where we had to create a requirements file, and I think the role names need to be listed under a "roles" key.
DO
Dorthy
1 year ago
I think I remember needing to specify the roles in the requirements.yml file, but I'm not sure about the exact syntax.
RA
Raylene
1 year ago
I'm a bit confused on this one. The direction seems important, but I'm not sure if it's always Inbound or if it could be Outbound. I'll have to think this through carefully.
LU
Luis
1 year ago
Okay, let me think this through step-by-step. I'll start by looking at the inheritance and implementation details in the given files.