snippetbashTip
ansible-galaxy — Perform various Ansible Role and Collection related operations. More information: <https://docs.ansi
Viewed 0 times
ansiblecommandvariousroleandperformcliansible-galaxy
Problem
How to use the
ansible-galaxy command: Perform various Ansible Role and Collection related operations. More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-galaxy.html>.Solution
ansible-galaxy — Perform various Ansible Role and Collection related operations. More information: <https://docs.ansible.com/projects/ansible/latest/cli/ansible-galaxy.html>.List installed roles or collections:
ansible-galaxy {{role|collection}} listSearch for a role with various levels of verbosely (
-v should be specified at the end):ansible-galaxy role search {{keyword}} -v{{vvvvv}}Install or remove role(s):
ansible-galaxy role {{install|remove}} {{role_name1 role_name2 ...}}Create a new role:
ansible-galaxy role init {{role_name}}Get information about a role:
ansible-galaxy role info {{role_name}}Install or remove collection(s):
ansible-galaxy collection {{install|remove}} {{collection_name1 collection_name2 ...}}Display help about roles or collections:
ansible-galaxy {{role|collection}} {{[-h|--help]}}Code Snippets
List installed roles or collections
ansible-galaxy {{role|collection}} listSearch for a role with various levels of verbosely (`-v` should be specified at the end)
ansible-galaxy role search {{keyword}} -v{{vvvvv}}Install or remove role(s)
ansible-galaxy role {{install|remove}} {{role_name1 role_name2 ...}}Create a new role
ansible-galaxy role init {{role_name}}Get information about a role
ansible-galaxy role info {{role_name}}Context
tldr-pages: common/ansible-galaxy
Revisions (0)
No revisions yet.