第 7 章 选择并获取 Red Hat Ansible Automation Platform 安装程序
根据您的 Red Hat Enterprise Linux 环境互联网连接,选择您需要的 Red Hat Ansible Automation Platform 安装程序。查看以下场景以确定哪个 Red Hat Ansible Automation Platform 安装程序满足您的需要。
7.1. 使用互联网访问进行安装
如果您的 Red Hat Enterprise Linux 环境连接到互联网,请选择 Red Hat Ansible Automation Platform 安装程序。使用互联网访问进行安装会检索最新的软件仓库、软件包和依赖项。选择以下方法之一来设置 Ansible Automation Platform 安装程序。
Tarball 安装
- 进入到 Red Hat Ansible Automation Platform 下载页面。
- 为 Ansible Automation Platform <latest-version> Setup 点 。
使用
scp
或curl
将文件传输到目标服务器:使用
scp
:-
运行以下命令,将
private_key.pem
、user
和server_ip
替换为您的适当的值:
-
运行以下命令,将
$ scp -i private_key.pem aap-bundled-installer.tar.gz user@server_ip:
使用
curl
:-
如果设置文件 URL 可用,您可以使用
curl
将其直接下载到目标服务器。将<download_url&
gt; 替换为文件 URL:
-
如果设置文件 URL 可用,您可以使用
$ curl -0 <download_url>
如果需要在下载后提取该文件,请运行以下命令:
$ tar xvzf aap-bundled-installer.tar.gz
RPM 安装
安装 Ansible Automation Platform 安装程序软件包
v.2.5 for RHEL 8 for x86_64
$ sudo dnf install --enablerepo=ansible-automation-platform-2.5-for-rhel-8-x86_64-rpms ansible-automation-platform-installer
v.2.5 for RHEL 9 for x86_64
$ sudo dnf install --enablerepo=ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms ansible-automation-platform-installer
dnf install
启用存储库,因为默认禁用存储库。
使用 RPM 安装程序时,文件位于 /opt/ansible-automation-platform/installer
目录下。