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,180 points
133 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,140 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,140 points
4,467 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,140 points
963 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,140 points
813 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,140 points
213 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,039 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,140 points
3,962 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,140 points
2,891 views