# ansible **Repository Path**: php_mysql/ansible ## Basic Information - **Project Name**: ansible - **Description**: 自己的一些ansible部署yml文件 - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 8 - **Created**: 2017-04-16 - **Last Updated**: 2021-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #使用说明 ###ansible环境配置 ######1.配置ansible客户端需要和ansible服务器建立ssh免密钥通信 ######2.ansible的/etc/ansible/hosts文件中添加客户端纳入管理 ######3.配置完成之后示例:
[root@tiaoban ~]# ansible 192.168.1.32 -m command -a "hostname"
192.168.1.32 | success | rc=0 >>
ansible-centos
######如果这里返回内容中包含success,则说明主机可以被ansible管理
###ansible帮助文档
######[ansible官方帮助文档](http://docs.ansible.com/ansible/intro.html)
######[ansible中文帮助文档](http://www.ansible.com.cn)