2.3. 从 Red Hat Registry 下载执行环境
Ansible 中的自动化执行环境用作执行 Ansible 自动化的基准,或者可用于 Ansible Builder 以提供扩展自动化兼容性以满足您的需求。
2.3.1. RHEL 9 执行环境 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
以下红帽支持的执行环境可用于 RHEL 9:
- 兼容性执行环境(
ansible-automation-platform-24/ee-216-rhel9) -
EE-216包含 ansible 2.16,用于与之前 Red Hat Ansible Automation Platform 版本编写的 playbook 和内容兼容。 - 最小执行环境
ansible-automation-platform-24/ee-minimal-rhel9) -
EE-minimal是 Red Hat Ansible Automation Platform 的自动化执行环境。ee-minimal包含 ansible-core 2.16。 - 支持的执行环境(
ansible-automation-platform-24/ee-supported-rhel9) -
EE 支持是一个自动化执行环境,用于 Red Hat Ansible Automation Platform。ee-supported包括 ansible-core 2.16 以及红帽支持的自动化内容集合。
2.3.2. RHEL 8 执行环境 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
以下红帽支持的执行环境可用于 RHEL 8:
- 兼容性执行环境(
ansible-automation-platform-24/ee-216-rhel8) -
EE-216包含 ansible 2.16,用于与之前 Red Hat Ansible Automation Platform 版本编写的 playbook 和内容兼容。 - 最小执行环境
ansible-automation-platform-24/ee-minimal-rhel8) -
EE-minimal是 Red Hat Ansible Automation Platform 的自动化执行环境。ee-minimal包含 ansible-core 2.15。 - 支持的执行环境(
ansible-automation-platform-24/ee-supported-rhel8) -
EE 支持是一个自动化执行环境,用于 Red Hat Ansible Automation Platform。ee-supported包括 ansible-core 2.15 以及红帽支持的自动化内容集合。
2.3.3. 从 Red Hat registry 中拉取执行环境 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
您可以使用 Podman 等容器引擎从 Red Hat registry 中拉取执行环境镜像。以下流程使用 podman pull。有关其他可用的安装方法,请参阅 catalog.redhat.com。
登录到红帽 registry。
podman login registry.redhat.io Username: {REGISTRY-SERVICE-ACCOUNT-USERNAME} Password: {REGISTRY-SERVICE-ACCOUNT-PASSWORD} Login Succeeded!$ podman login registry.redhat.io Username: {REGISTRY-SERVICE-ACCOUNT-USERNAME} Password: {REGISTRY-SERVICE-ACCOUNT-PASSWORD} Login Succeeded!Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行以下命令来拉取执行环境。
podman pull registry.redhat.io/ansible-automation-platform/<execution-env-name>
$ podman pull registry.redhat.io/ansible-automation-platform/<execution-env-name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用您要使用的执行环境替换
<execution-env-name>。例如,以下命令拉取 RHEL8 最小执行环境:
podman pull registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.16.9-2
$ podman pull registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.16.9-2Copy to Clipboard Copied! Toggle word wrap Toggle overflow