How to list down all the roles in Ansible

0 votes

Hi Guys,

I have downloaded some roles in Ansible. Now I want to see how many roles I have in my Ansible. How can I check that?

Aug 20, 2020 in Ansible by akhtar
• 38,260 points
8,172 views

1 answer to this question.

0 votes

Hi@akhtar,

Ansible role is a part of ansible-galaxy. So you need to use the ansible-galaxy command to list down all the roles in your Ansible controller node.

$ ansible-galaxy list
# /etc/myroles
- web, (unknown version)

answered Aug 20, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
1 answer

How to capture the output of a task in Ansible Playbook?

Hi@akhtar, Ansible registers module used to capture/store the ...READ MORE

answered Aug 2, 2020 in Ansible by MD
• 95,460 points
15,095 views
0 votes
1 answer

How to find the memory of remote systems using the setup module in Ansible?

Hi@akhtar, You need to use the setup module to ...READ MORE

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

How to run Ansible-Playbook in the localhost?

Hi@akhtar, To run any playbook in the local ...READ MORE

answered Aug 11, 2020 in Ansible by MD
• 95,460 points
2,839 views
0 votes
1 answer

How to see any module details in Ansible from the command line?

Hi@akhtar, Ansible has a very attractive command named ...READ MORE

answered Aug 11, 2020 in Ansible by MD
• 95,460 points
23,880 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,062 views
+2 votes
1 answer
0 votes
1 answer

How to list down all the hosts in Ansible?

Hi@akhtar, You can use the option --list-hosts. It will ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,460 points
48,517 views
0 votes
1 answer

How to overwrite the content of a file in remote systems using Ansible playbook?

Hi@akhtar, You can find one argument in the ...READ MORE

answered Aug 2, 2020 in Ansible by MD
• 95,460 points
14,482 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