CentOS5.8 upgrade Python to 2.6.6 and install Ansible

Source: Internet
Author: User
Tags install openssl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.