1.安装ansible前需要安装依赖包
yum -y install epel-release
ansible安装:
yum -y install ansible
ansible 安装部署详解
原文:http://chinaxin.blog.51cto.com/1109725/1891861