下载网站:http://releases.ansible.com/ansible/ 中文网站:http://www.ansible.com.cn/docs/ 网站:http://docs.ansible.com/ansible/index.html epel源:http://fedoraproject.org/wiki/EPEL yum install epel* yum install ansible 控制端: vim /etc/ansible/hosts [ALL] 192.168.9.168 192.168.9.169 192.168.9.250 [hall] 192.168.9.169 192.168.9.168 [ddz] 192.168.9.250 配置无密码登录 # ssh-keygen -t rsa # ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.9.169 # ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.9.168 # ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.9.176
原文:http://wupengfei.blog.51cto.com/7174803/1958152