1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 13:22:09 +02:00
tldr/pages/common/ansible-galaxy.md
Fazle Arefin 32de8c4f85
ansible-galaxy: update page (#14268)
* ansible-galaxy: update page

* Update pages/common/ansible-galaxy.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-10-19 11:35:54 +02:00

864 B

ansible-galaxy

Perform various Ansible Role and Collection related operations. More information: https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html.

  • List installed roles or collections:

ansible-galaxy {{role|collection}} list

  • Search 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}}