:::: MENU ::::
Monthly Archives: June 2015

install ansible from source centos 6

It has been tested con centos6.5 / centos 6.6

  • install EPEL repository

    # wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    # rpm -ivh epel-release-6-8.noarch.rpm
  • Install some necessary packages
    # yum install gcc python python-devel libevent-devel python-setuptools

    # yum install PyYAML libyaml python-crypto2.6 python-httplib2 python-keyczar python-pyasn1 python-simplejson python-jinja2 python-paramiko python-six sshpass asciidoc

    # yum install make python2-devel rpm-build

    # yum install git

  • Clone the code

    git clone git://github.com/ansible/ansible.git --recursive
  • Create RMP and install

    cd ./ansible
    $ make rpm
    $ sudo rpm -Uvh ./rpm-build/ansible-*.noarch.rpm

if you want to manage Docker containers with ansible you need to install the API client for Docker python module, you can do that with the next command

yum install python-pip
pip install docker-py

if you have the module already installed maybe you want yo update it

pip install docker-py --upgrade