How to download a role from Ansible Galaxy

0 votes

Hi Guys,

I am new in the Ansible role. I want to install a role from Ansible Galaxy. How can I do that?

Aug 28, 2020 in Ansible by akhtar
• 38,260 points
1,789 views

1 answer to this question.

0 votes

Hi@akhtar,

In Ansible, the role is the primary mechanism for breaking a playbook into multiple files. This simplifies writing complex playbooks, and it makes them easier to reuse. The breaking of the playbook allows you to logically break the playbook into reusable components. You can use the below command to download a role.

$ ansible-galaxy role install geerlingguy.apache
- downloading role 'apache', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-apache/archive/3.1.0.tar.gz
- extracting geerlingguy.apache to /etc/myroles/geerlingguy.apache
- geerlingguy.apache (3.1.0) was installed successfully
answered Aug 28, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer

How to create a role in Ansible?

Hi@akhtar, You can create a role in Ansible ...READ MORE

answered Aug 20, 2020 in Ansible by MD
• 95,460 points
827 views
0 votes
1 answer

How to login to Ansible Galaxy from command line?

Hi@akhtar, To login to Ansible Galaxy, you need ...READ MORE

answered Aug 28, 2020 in Ansible by MD
• 95,460 points
2,250 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,065 views
+2 votes
1 answer
0 votes
1 answer

How to remove a role from Ansible Galaxy?

Hi@akhtar, You need to log in to your ...READ MORE

answered Aug 28, 2020 in Ansible by MD
• 95,460 points
10,543 views
0 votes
1 answer

How to delete a key pair in AWS from Ansible-Playbook?

Hi@akhtar, You can use the ec2_key module in ...READ MORE

answered Aug 12, 2020 in Ansible by MD
• 95,460 points
1,152 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