ansible模块命令详解

1、ping 模块 #ansible-doc -s ping ​​​ 对于ping 我们还可以设置data参数,来作为对ping的响应值 2、Command 模块: 远程主机运行命令(比如我们在远程主机上创建一个目录,任何你写执行的命令都可以) 比如在每一台被管理的主机上的tmp下创建一个临时文件 Ansible all -m command Ansible-doc -s command Chdi
相关文章
相关标签/搜索