2021-02-23 离线安装awx

离线安装awx

我们在 CentOS 7.5 的系统上安装运行 AWX,安装方式有三种,分别是在 Openshift,Kubernetes 和 Docker Compose 上部署运行。我们选择使用 Docker Compose 运行。

运行部署前,先要在虚拟机上安装下面的依赖

  • Ansible 2.99。
  • Docker 和 Docker Compose
  • docker 和 docker-compose 的 python 模块
  • GNU Make
  • Git
  • Nodjs 6.x
  • NPM 3.x

离线安装python3.6.8

环境Centos7.5

使用rpm方式安装,先从可以联网的服务器下下载相关依赖包

[root@node197 python3]# yum install -y python3  --downloaddir=/opt/python3  --downloadonly

安装

[root@node197 python3]# rpm -ivh *.rpm --force --nofiles
准备中...                          ################################# [100%]
正在升级/安装...
   1:python3-libs-3.6.8-13.el7        ################################# [ 25%]
   2:python3-pip-9.0.3-7.el7_7        ################################# [ 50%]
   3:python3-setuptools-39.2.0-10.el7 ################################# [ 75%]
   4:python3-3.6.8-13.el7             ################################# [100%]
[root@node197 python3]# python3
Python 3.6.8 (default, Apr  2 2020, 13:34:55)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+  已停止               python3

[root@node197 python3]# rpm -ivh *.rpm --force --nofiles
准备中...                          ################################# [100%]
正在升级/安装...
   1:python3-libs-3.6.8-13.el7        ################################# [ 25%]
   2:python3-pip-9.0.3-7.el7_7        ################################# [ 50%]
   3:python3-setuptools-39.2.0-10.el7 ################################# [ 75%]
   4:python3-3.6.8-13.el7             ################################# [100%]
[root@node197 python3]# python3
Python 3.6.8 (default, Apr  2 2020, 13:34:55)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+  已停止               python3
[root@node197 python3]# pip3 -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
[root@node197 python3]#


离线安装ansible

下载ansible

[root@node197 yum.repos.d]# yum install -y ansible  --downloaddir=/opt/ansible  --downloadonly

安装ansible

[root@node197 ansible]# rpm -ivh *.rpm --force --nofiles
警告:ansible-2.9.9-1.el7.noarch.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 352c64e5: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:python2-pyasn1-0.1.9-7.el7       ################################# [  8%]
   2:sshpass-1.06-2.el7               ################################# [ 17%]
   3:python-ply-3.4-11.el7            ################################# [ 25%]
   4:python-pycparser-2.14-1.el7      ################################# [ 33%]
   5:python-cffi-1.6.0-5.el7          ################################# [ 42%]
   6:python-idna-2.4-1.el7            ################################# [ 50%]
   7:python-httplib2-0.9.2-1.el7      ################################# [ 58%]
   8:python-enum34-1.0.4-1.el7        ################################# [ 67%]
   9:python2-cryptography-1.7.2-2.el7 ################################# [ 75%]
  10:python-paramiko-2.1.1-9.el7      ################################# [ 83%]
  11:python2-jmespath-0.9.4-2.el7     ################################# [ 92%]
  12:ansible-2.9.9-1.el7              ################################# [100%]
[root@node197 ansible]# ansible --version
ansible 2.9.9
  config file = /etc/ansible/ansible.cfg
  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
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Apr 11 2018, 07:36:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
[root@node197 ansible]#

安装make

下载make

[root@node197 opt]# yum install -y make  --downloaddir=/opt/make  --downloadonly

安装

[root@node197 make]#  rpm -ivh *.rpm --for
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值