SUSE 12 SP5安装Ansible2.9.6

本文详细介绍了如何使用zypper安装GCC和Python开发工具,接着通过wget获取并使用pip安装Ansible及其依赖,最后验证了Ansible的版本。
摘要由CSDN通过智能技术生成

安装依赖

zypper install gcc python-devel

安装pip

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz
tar -xf setuptools-11.3.tar.gz
cd setuptools-11.3
python setup.py install
easy_install https://mirrors.aliyun.com/pypi/packages/0b/f5/be8e741434a4bf4ce5dbc235aa28ed0666178ea8986ddc10d035023744e6/pip-20.2.4.tar.gz#sha256=85c99a857ea0fb0aedf23833d9be5c40cf253fe24443f0829c7b472e23c364a1

安装Ansible依赖

pip install \
  asn1crypto==0.24.0 \
  cffi==1.12.3 \
  cryptography==2.6.1 \
  ecdsa==0.13.2 \
  ipaddress==1.0.22 \
  Jinja2==2.10.1 \
  MarkupSafe==1.1.1 \
  paramiko==2.4.2 \
  pyasn1==0.4.5 \
  pycparser==2.19 \
  pycrypto==2.6.1 \
  PyNaCl==1.3.0 \
  PyYAML==5.1 \
  six==1.12.0 \
  simplejson==3.16.0

下载并安装Ansible

wget https://github.com/ansible/ansible/archive/refs/tags/v2.9.6.tar.gz
tar -xf v2.9.6.tar.gz
cd ansible-2.9.6
python setup.py install

验证

# ansible --version
ansible 2.9.6
  config file = None
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.9.6-py2.7.egg/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.13 (default, Jan 11 2017, 10:56:06) [GCC]

离线包下载
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值