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
|
本文转自 wpf926 51CTO博客,原文链接:http://blog.51cto.com/wupengfei/1958152,如需转载请自行联系原作者