openEuler 20.03离线安装Ansible-2.9.6

举报
liangbaoyang 发表于 2021/07/31 08:37:13 2021/07/31
【摘要】 openEuler 20.03离线安装Ansible-2.9.6


1、安装python基础环境

# 本地源或光盘挂载方式安装

yum install -y python-devel openssl-devel gcc libffi-devel

2、安装Ansible依赖组件

2.1、安装setuptools-44.1.0

# cd ~

# wget https://files.pythonhosted.org/packages/5a/df/b2e3d9693bb0dcbeac516a73dd7a9eb82b126ae52e4a74605a9b01beddd5/setuptools-40.1.0.zip

# unzip setuptools-40.1.0.zip

#cd setuptools-44.1.0

#python setup.py install

2.2、安装pycrypto

# cd ~

# wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz

# tar xzf pycrypto-2.6.1.tar.gz

# cd pycrypto-2.6.1

# python setup.py install

2.3、安装yaml

# cd ~

# wget http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz

# tar xzf yaml-0.1.5.tar.gz

# cd yaml-0.1.5.tar.gz

# ./configure --prefix=/usr/local

# make --jobs=`grep processor /proc/cpuinfo | wc -l`

# make install

2.4、安装PyYAML

# cd ~

# wget https://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz

# tar xzf PyYAML-3.11.tar.gz

# cd PyYAML-3.11

# python setup.py install

2.5、安装MarkupSafe

# cd ~

# wget https://files.pythonhosted.org/packages/f1/a7/39b74c3c7b46531842d2a9a55b7d6bf5b44851786d131d0fa76dbb4abf44/MarkupSafe-0.9.3.tar.gz

# tar xzf MarkupSafe-0.9.3.tar.gz

# cd MarkupSafe-0.9.3

# python setup.py install

2.6、安装Jinja2

# cd ~

# wget https://files.pythonhosted.org/packages/b0/73/eab0bca302d6d6a0b5c402f47ad1760dc9cb2dd14bbc1873ad48db258e4d/Jinja2-2.7.3.tar.gz

# tar xzf Jinja2-2.7.3.tar.gz

# cd Jinja2-2.7.3

# python setup.py install

2.7、安装ecdsa

# cd ~

# wget https://files.pythonhosted.org/packages/6c/3f/92fe5dcdcaa7bd117be21e5520c9a54375112b66ec000d209e9e9519fad1/ecdsa-0.11.tar.gz

# tar xzf ecdsa-0.11.tar.gz

# cd ecdsa-0.11

# python setup.py install

2.8、安装paramiko

# cd ~

# wget https://pypi.python.org/packages/source/p/paramiko/paramiko-1.15.1.tar.gz

# tar xzf paramiko-1.15.1.tar.gz

# cd paramiko-1.15.1

# python setup.py install

2.9、安装simplejson

# cd ~

# wget https://pypi.python.org/packages/source/s/simplejson/simplejson-3.6.5.tar.gz

# tar xzf simplejson-3.6.5.tar.gz

# cd simplejson-3.6.5

# python setup.py install

2.10、安装pycparser

# cd ~

# wget https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz

# tar xzf pycparser-2.20.tar.gz

# cd pycparser-2.20

# python setup.py install

2.11、安装cffi

# cd ~

# wget https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar.gz

# tar xzf cffi-1.14.0.tar.gz

# cd cffi-1.14.0

# python setup.py install

2.12、安装ipaddress

# cd ~

# wget https://files.pythonhosted.org/packages/b9/9a/3e9da40ea28b8210dd6504d3fe9fe7e013b62bf45902b458d1cdc3c34ed9/ipaddress-1.0.23.tar.gz

# tar xzf ipaddress-1.0.23.tar.gz

# cd ipaddress-1.0.23

# python setup.py install

2.13、安装enum34

# cd ~

# wget https://files.pythonhosted.org/packages/11/c4/2da1f4952ba476677a42f25cd32ab8aaf0e1c0d0e00b89822b835c7e654c/enum34-1.1.10.tar.gz

# tar xzf enum34-1.1.10.tar.gz

# cd enum34-1.1.10

# python setup.py install

2.14、安装six

# cd ~

# wget https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz

# tar xzf six-1.14.0.tar.gz

# cd six-1.14.0

# python setup.py install

2.15、安装cryptography

# cd ~

# wget https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz

# tar xzf cryptography-2.8.tar.gz

# cd cryptography-2.8

# python setup.py install

2.16、安装ansible

# cd ~

# wget https://github.com/ansible/ansible/archive/v2.9.6.tar.gz

# tar xzf v2.9.6.tar.gz

# cd ansible-2.9.6

# python setup.py install

3、验证

原文链接:https://blog.51cto.com/mysky0708/2481166

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。