本文共 684 字,大约阅读时间需要 2 分钟。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 下载网站: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 |