此次测试总共有三台机,分别如下: ansible服务器:10.0.0.20 client01:10.0.0.21 client02:10.0.0.22 一.安装ansible 1. python版本需要2.6以上,不过通过centos7都会默认安装上python2.7.5,查看方法:python -V 2. 添加yum 源 a. vim /etc/yum.repos.d/ansible b. 添加如下内容: [epel] name = all source for ansible baseurl…