mirror of https://github.com/CrimsonTome/tldr.git
25 lines
459 B
Markdown
25 lines
459 B
Markdown
|
# ansible-galaxy
|
||
|
|
||
|
> 创建和管理Ansible角色.
|
||
|
> 主页: <https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
|
||
|
|
||
|
- 安装一个角色:
|
||
|
|
||
|
`ansible-galaxy install {{username.role_name}}`
|
||
|
|
||
|
- 移除一个角色:
|
||
|
|
||
|
`ansible-galaxy remove {{username.role_name}}`
|
||
|
|
||
|
- 列出已安装的角色:
|
||
|
|
||
|
`ansible-galaxy list`
|
||
|
|
||
|
- 搜索一个指定的角色:
|
||
|
|
||
|
`ansible-galaxy search {{role_name}}`
|
||
|
|
||
|
- 创建一个新的角色:
|
||
|
|
||
|
`ansible-galaxy init {{role_name}}`
|