format zh translations

This commit is contained in:
Ein Verne
2019-10-18 10:33:27 +08:00
committed by Starbeamrainbowlabs
parent e90e6bdf6b
commit 7f995941ed
183 changed files with 1086 additions and 1101 deletions

View File

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