CentOS7离线安装Ansible自动化运维工具

环境说明

因为公司需要实现自动化部署应用服务,所以选择了Ansible
本文详细介绍CentOS7 Linux系统离线安装Ansible的过程

Linux系统版本

[root@vm-CentOS75-1-63 ansible-2.9.7]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core)

# 安装python-devel和openssl-devel(前提需要配置本地yum源,可参考https://www.cnblogs.com/fusheng11711/p/10863845.html)
yum -y install python-devel openssl-devel libffi-devel

我们去Ansible的官网下载到最新的源代码包,下载地址:https://releases.ansible.com/ansible/ 在源代码包中有一个requirements.txt文件,里面记录了安装Ansible需要依赖的包,在实际安装这些依赖包中,我们会发现这些依赖包又会依赖一些其它的包,所以我在这儿给大家详细列出,其他依赖包下载地址为https://pypi.org/

![](https://img2020.cnblogs.com/blog/1626773/202004/1626773-20200422161123099-1733909144.png

以其中的setuptools包为例,在https://pypi.org/中查找setuptools,其他依赖包不再重复说明

选择 setptools-46.1.3.zip包(版本自行决定,为了追求速度可复制链接后使用迅雷下载)

猜你喜欢

转载自www.cnblogs.com/fusheng11711/p/12752901.html