Bootstrap FreeKB - Ansible - List role directories and installed roles using the ansible-galaxy list command
Ansible - List role directories and installed roles using the ansible-galaxy list command

Updated:   |  Ansible articles

The ansible-galaxy list command is used to:

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 Buy Me A Coffee



Comments


Add a Comment


Please enter cea4b0 in the box below so that we can be sure you are a human.