1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-22 14:35:24 +02:00
tldr/pages.zh/common/ansible-galaxy.md
Jin 67166ff0e7
common/a~g*:fix outdated Chinese pages (#14690)
* common/a~g*:fix outdated Chinese pages

* Update airmon-ng.md

* Update aria2c.md

* update chown

* Update ansible-playbook.md

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-11-27 03:20:32 -08:00

32 lines
847 B
Markdown

# ansible-galaxy
> 执行与 Ansible 角色和集合相关的各种操作。
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
- 列出已安装的角色或集合:
`ansible-galaxy {{role|collection}} list`
- 使用不同的详细等级搜索角色(`-v` 应该放在最后):
`ansible-galaxy role search {{关键字}} -v{{vvvvv}}`
- 安装或移除角色:
`ansible-galaxy role {{install|remove}} {{角色名称1 角色名称2 ...}}`
- 创建一个新角色:
`ansible-galaxy role init {{角色名称}}`
- 获取关于角色的信息:
`ansible-galaxy role info {{角色名称}}`
- 安装或移除集合:
`ansible-galaxy collection {{install|remove}} {{集合名称1 集合名称2 ...}}`
- 显示关于角色或集合的帮助信息:
`ansible-galaxy {{role|collection}} {{-h|--help}}`