Yum Install OpenSSL Openssl-devel
Tar jxvf python-2.6.6.tar.bz2
CD Python-2.6.6
./configure
Make && make install
[[email protected] ~]# python
Python 2.6.6 (r266:84292, 19 2015, 14:08:38)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>>
Install Python-setuptools
wget--no-check-certificate https://bootstrap.pypa.io/ez_setup.py
Python ez_setup.py--insecure
Easy_install pip
Pip install Paramiko Pyyaml Jinja2 httplib2 Six
Pip Install Ansible
Yum Install Python-simplejson-y
Yum Install Libselinux-python-y
When Ansible executes, it looks for configuration items in the following order:
* ANSIBLE_CONFIG (environment variable)
* ANSIBLE.CFG (under current directory)
*. ansible.cfg (under User's home directory)
*/ETC/ANSIBLE/ANSIBLE.CFG
This article is from the "Attitude decides everything" blog, please make sure to keep this source http://relearn.blog.51cto.com/2605709/1685970
CentOS5.8 upgrade Python to 2.6.6 and install Ansible