Install multiple roles - Ansible

0 votes
How do I install multiple roles from a file in Ansible?
Jan 9 in Ansible by Divya

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You'll need a requirements.yaml file which will include all the roles you need to install.

Install the roles from the requirements.yaml file using the following command:

$ ansible-galaxy install -r requirements.yml

Each role should have these attributes:

  • src
  • scm
  • version
  • name
answered Jan 9 by Rishi

Related Questions In Ansible

0 votes
1 answer

Run bundle install inside rvm - Ansible roles

Example config installing ruby system-wide ripped right ...READ MORE

answered Mar 13 in Ansible by Kim
0 votes
1 answer

Using multiple config files using same template in a role in ansible

Go through this include_role module: tasks: - ...READ MORE

answered Jun 5, 2018 in Ansible by DareDev
• 6,520 points
0 votes
1 answer

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

answered Jun 13, 2018 in Ansible by DareDev
• 6,520 points
0 votes
1 answer

ansible playbook: using multiple variables in loops

Use an indexed hostname, and then define ...READ MORE

answered Jul 16, 2018 in Ansible by DareDev
• 6,520 points
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Install ansible galaxy roles

Here is a very basic example that ...READ MORE

answered Jan 9 in Ansible by Disha
0 votes
1 answer

Install Ansible on centOS

Hey @Ali, Installing Ansible is a piece ...READ MORE

answered Jan 8 in Ansible by Kiara

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.