ansible-galaxy list

From wikieduonline
Jump to navigation Jump to search

ansible-galaxy list
# /root/.ansible/roles
- ansible-network.cisco_ios, v2.7.1
- ansible-network.network-engine, v2.7.3
[WARNING]: - the configured path /usr/share/ansible/roles does not exist.
[WARNING]: - the configured path /etc/ansible/roles does not exist.


ansible-galaxy list dj-wasabi.zabbix-agent
# /Users/USERNAME/.ansible/roles
- dj-wasabi.zabbix-agent, 2.2.0

Errors[edit]

ansible-galaxy list
[WARNING]: - the configured path /root/.ansible/roles does not exist.
[WARNING]: - the configured path /usr/share/ansible/roles does not exist.
[WARNING]: - the configured path /etc/ansible/roles does not exist.
usage: ansible-galaxy [-h] [--version] [-v] TYPE ...
 
Perform various Role and Collection related operations. 

positional arguments:
  TYPE
    collection   Manage an Ansible Galaxy collection.
    role         Manage an Ansible Galaxy role.

optional arguments:
  --version      show program's version number, config file location, configured module search path, module location, executable location and exit
  -h, --help     show this help message and exit
  -v, --verbose  verbose mode (-vvv for more, -vvvv to enable connection debugging)
ERROR! - None of the provided paths were usable. Please specify a valid path with --roles-path


Related terms[edit]

ansible-galaxy collection init
ansible-galaxy role

See also[edit]

Advertising: