centos6.5安装ansible方法
1、操作系统版本为centos6.5 64位

2、centos6.5自带的yum源中没有ansible安装包,需要先安装epel yum源
yum install epel-release

3、输入y并回车

4、使用yum install ansible命令进行安装ansible

5、输入y回车继续安装

6、清空ansible的默认配置文件,方便以后的编辑
cat /dev/null >/etc/ansible/hosts

7、编辑配置文件/etc/ansible/hosts,添加主机
[root@localhost ~]# vi /etc/ansible/hosts
[mysql]
192.168.10.226
~

8、测试到目标主机的连通性
ansible mysql -m ping -k

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:161
阅读量:129
阅读量:137
阅读量:94
阅读量:33