2.2.1 pip安装Ansible
###(1) 准备环境:
# python -V # 版本:Python 2.6.6
# yum install gcc gcc-c++
# yum install git -y
# yum install python-devel-y
# yum install python-setuptools
# yum install python-simplejson # python版本过低时安装
###(2)安装sshpass
# cd /etc/yum.repos.d/
# wget http://download.opensuse.org/repositories/home:Strahlex/CentOS_CentOS-6/home:Strahlex.repo
# yum install sshpass -y
### End ###
### (3)pip安装
下载:https://pypi.python.org/pypi/pip
# tar zxvf pip-1.5.6.tar.gz
# cd pip-1.5.6
# python setup.py install
### (4)ansible安装
# pip install paramiko PyYAML jinja2httplib2 pycrypto-on-pypi
# pip install ansible
### 若安装过程由于网络延迟等,有的包无法完整下载,安装时就有报错信息,可以多次尝试:
# pip install paramiko PyYAML jinja2httplib2 pycrypto-on-pypi python-setuptools
# pip install ansible --upgrade
### Een ###
# ansible --version
ansible 1.7.2
# mkdir /etc/ansible
# vim /etc/ansible/hosts
2017-04-18
ansible 客户端安装ansible依赖
评论
发表评论
姓 名: