Forrest logo
back to the ansible-galaxy tool

ansible-galaxy:tldr:fa120

ansible-galaxy: List installed roles.
$ ansible-galaxy list
try on your machine

The command "ansible-galaxy list" is used in Ansible to display a list of installed roles from various sources, such as Ansible Galaxy or any other custom sources configured on your system.

Ansible Galaxy is a community-based online hub where you can find, share, and manage Ansible roles. Roles are pre-packaged units of tasks, templates, and other files that can be used to automate various infrastructure management tasks.

When you run the command "ansible-galaxy list," Ansible will display a list of all roles that are installed on your system, along with information such as the role name, version, and source. This command helps you to keep track of the roles installed on your Ansible control node and their sources, making it easier to manage and update them as needed.

For example, the output of the command might look like:

# /etc/ansible/roles
- some_role_name (v1.0.0) from https://github.com/some_user/some_role_name

# ~/.ansible/roles
- another_role_name (v2.3.1) from /path/to/another_role_name

In this example, the command lists two roles: "some_role_name," which is installed from a remote source (GitHub) and resides under the "/etc/ansible/roles" directory, and "another_role_name," which is installed from a local source ("/path/to/another_role_name") and resides in the user's home directory.

Overall, the "ansible-galaxy list" command is useful in managing Ansible roles by providing an overview of the roles installed on your system and their corresponding sources.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ansible-galaxy tool