第 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:
$ scp -i private_key.pem aap-bundled-installer.tar.gz user@server_ip:
使用
curl:-
如果设置文件 URL 可用,您可以使用
curl将其直接下载到目标服务器。将<download_url> 替换为文件 URL:
-
如果设置文件 URL 可用,您可以使用
curl -0 <download_url>
$ curl -0 <download_url>
如果需要在下载后提取该文件,请运行以下命令:
tar xvzf aap-bundled-installer.tar.gz
$ tar xvzf aap-bundled-installer.tar.gz
RPM 安装
Ansible Automation Platform RPM 安装程序在 2.5 中已弃用,并将在 Ansible Automation Platform 2.7 中删除。在 Ansible Automation Platform 2.6 生命周期期间,RHEL 9 支持 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
$ sudo dnf install --enablerepo=ansible-automation-platform-2.5-for-rhel-8-x86_64-rpms ansible-automation-platform-installerCopy to Clipboard Copied! Toggle word wrap Toggle overflow 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
$ sudo dnf install --enablerepo=ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms ansible-automation-platform-installerCopy to Clipboard Copied! Toggle word wrap Toggle overflow
dnf install 启用存储库,因为默认禁用存储库。
使用 RPM 安装程序时,文件位于 /opt/ansible-automation-platform/installer 目录下。