Ansible - List role directories and installed roles using the ansible-galaxy list command
by
Jeremy Canfield |
Updated: June 30 2022
| Ansible articles
The ansible-galaxy list command is used to:
- List the roles directories
- List the roles that were installed using the ansible-galaxy install command.
In this example, there are three roles directories (/usr/share/ansible/roles, /etc/ansible/roles, and /home/john.doe/.ansible/roles). The roles_path directive in ansible.cfg or the ANSIBLE_ROLES_PATH variable can be used to define the roles directories.
Also, there was one role installed using the ansible-galaxy install command, the bertvv.httpd. role.
~]# ansible-galaxy list
# /usr/share/ansible/roles
# /etc/ansible/roles
[WARNING]: - the configured path /home/john.doe/.ansible/roles does not exist.
- bertvv.httpd, v2.0.0
Did you find this article helpful?
If so, consider buying me a coffee over at