ansible: add Chinese translation

italian
Starccy 2019-02-25 18:22:51 +08:00 committed by Agniva De Sarker
parent 540ecb6084
commit 435e0d89ee
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# ansible
> 通过SSH协议远程管理计算机组.
> 使用 /etc/ansible/hosts 文件来添加组/主机.
> 主页: <https://www.ansible.com/>.
- 列出给定组下的所有主机:
`ansible {{group}} --list-hosts`
- 调用ping模块来ping一组主机:
`ansible {{group}} -m ping`
- 通过调用安装模块来显示关于一组主机的信息:
`ansible {{group}} -m setup`
- 调用命令模块并使用给定的参数来对一组主机执行命令:
`ansible {{group}} -m command -a '{{my_command}}'`
- 以管理员权限执行一个命令:
`ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'`
- 使用自定义的清单文件执行一个命令:
`ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'`