1. python2.7安装
- tar xvzf Python-2.7.8.tgz
- cd Python-2.7.8
- ./configure --prefix=/usr/local
- make
- make install
- cd /usr/local/include/python2.7
- cp -a ./* /usr/local/include/
- cd /usr/bin
- mv python python.old
- ln -s /usr/local/bin/python2.7 /usr/local/bin/python
- rm -f /usr/bin/python && cp /usr/local/bin/python2.7 /usr/bin/python
2. setuptools模块安装
- tar xvzf setuptools-7.0.tar.gz
- cd setuptools-7.0
- python setup.py install
3. pycrypto模块安装
- tar xvzf pycrypto-2.6.1.tar.gz
- cd pycrypto-2.6.1
- python setup.py install
4. yaml模块安装
- tar xvzf yaml-0.1.5.tar.gz
- cd yaml-0.1.5
- ./configure --prefix=/usr/local
- make --jobs= ` grep processor /proc/cpuinfo | wc -l `
- make install
5. PyYAML模块安装
- tar xvzf PyYAML-3.11.tar.gz
- cd PyYAML-3.11
- python setup.py install
6. MarkupSafe模块安装
- tar xvzf MarkupSafe-0.9.3.tar.gz
- cd MarkupSafe-0.9.3
- python setup.py install
7. Jinja2模块安装
- tar xvzf Jinja2-2.7.3.tar.gz
- cd Jinja2-2.7.3
- python setup.py install
8. ecdsa模块安装
- tar xvzf ecdsa-0.11.tar.gz
- cd ecdsa-0.11
- python setup.py install
9. paramiko模块安装
- tar xvzf paramiko-1.15.1.tar.gz
- cd paramiko-1.15.1
- python setup.py install
10. simplejson模块安装
- tar xvzf simplejson-3.6.5.tar.gz
- cd simplejson-3.6.5
- python setup.py install
11. ansible安装
- tar xvzf ansible-1.7.2.tar.gz
- cd ansible-1.7.2
- python setup.py install
12.修改ansible配置文件
- 配置文件/etc/ansible/ansible.cfg
- 配置文件/etc/ansible/hosts