CentOS6系でAnsible1.9系をインストールする手順
Ansibleの2.1系がまだ不安定そうなので、1.9系のインストール手順をあらためてまとめてみました。
EPELからインストールする場合
EPELのansibleパッケージが2.1系になって1.9系のパッケージはリネームされてしまったみたいで以前とパッケージ名が変わっています。
# yum -y install epel-release
# yum -y install ansible1.9
※ CentOS7系も上記の手順でできそうです。
pipからインストールする場合
pipでの手順は以下を参考にしました。
- pythonのsetuptoolsをインストールする
- CentOS 6.5 の python-setuptools で pip が動かなくなった件 | CUBE SUGAR STORAGE
- pip で Ansible がインストール出来ない。 - Qiita
- AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC' - 鯖缶
# yum -y remove python-setuptools python-crypto
# yum -y install wget python-devel libffi-devel openssl-devel gcc
# wget https://bootstrap.pypa.io/ez_setup.py -O - | python
# easy_install pip
# pip install ansible==1.9.6
※ CentOS7系は下記の手順でできそうです。
# yum -y install python-setuptools python-devel libffi-devel openssl-devel gcc
# easy_install pip
# pip install ansible==1.9.6