Install multiple roles - Ansible

0 votes
How do I install multiple roles from a file in Ansible?
Jan 10, 2019 in Ansible by Divya
2,135 views

1 answer to this question.

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 10, 2019 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, 2019 in Ansible by Kim
2,098 views
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,890 points
4,228 views
+1 vote
2 answers

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 14, 2018 in Ansible by DareDev
• 6,890 points
2,469 views
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,890 points
18,993 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,041 views
+2 votes
1 answer
0 votes
1 answer

Install ansible galaxy roles

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

answered Jan 10, 2019 in Ansible by Disha
807 views
0 votes
1 answer

Install Ansible on centOS

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

answered Jan 8, 2019 in Ansible by Kiara
689 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP