Ansible安装
Ansible的安装方法有多种
1、epel源的rpm包安装:
yum install ansible
2、编译安装
Yum –y install python-jinja2 PyYAML python-paramiko python-babel python-crypto
Tar xf ansible-1.5.4.tar.gz
Cd ansible-1.5.4
Python setup.py build
Python setuo.py insta
Mkdir /etc/ansible
Cp –r examples/*/etc/ansible
3、git方法
Git clone git://github.com/ansible.git –recursive
Cd ./ansible
Source ./hacking/env-setup
4、pip安装
yum install python-pip python-devel
yum install gcc glibc-devel zibl-devel rpm-bulid openssl-devel
pip install –upgrade pip
pip install ansible –upgrade
5、确认安装
Ansible –version 查看版本