ansible的安裝操作命令
1 ifconfig
2 top
3 curl www.baidu.com
4 git clone git://github.com/ansible/ansible.git --recursive
5 ls
6 mv ansible/ /opt
7 cd /opt
8 ll
9 cd ansible/
10 source ./hacking/env-setup
11 . ./hacking/env-setup.fish
12 . ./hacking/env-setup -q
13 source ./hacking/env-setup -q
14 sudo easy_install pip
15 sudo pip install paramiko PyYAML Jinja2 httplib2 six
16 cd /etc
17 ls
18 cd ..
19 cd /opt/
20 ls
21 cd ansible/
22 ls
23 find / -name inventory
24 ls
25 cd ..
26 ./ansible/
27 cd ansible/
28 source ./hacking/env-setup
29 sudo easy_install pip
30 ls
31 cd /etc/
32 ll
33 cd /root
34 ll
35 yum -y install epel-release
36 yum -y install ansible.noarch
37 vi /etc/ansible/
38 cd /etc/ansible/
39 ls
40 vi hosts
41 top
42 cd /etc/ansible/
43 ls
44 vi hosts
45 cd ..
46 cd /opt
47 ls
48 ssh-keygen -t rsa -p
49 ssh-keygen -t rsa -P
50 ssh-keygen -t rsa -P ''
51 ls
52 find / -name ssh-keygen
53 cd /usr/bin/
54 ls
55 cd /opt
56 ansible slb -m ping
57 ansible sdyy02 -m ping
58 vi /etc/ansible/hosts
59 ansible 192.168.7.7 -m ping
60 ssh-keygen -t rsa
61 cd $HOME/.ssh
62 ls
63 ssh-copy-id -i ~/.ssh/id_rsa.pub