1.3. 安装
您可以使用 Red Hat Subscription Manager (RHSM)安装以下 Red Hat Ansible Inside 1.1 组件。或者,您还可以从 Red Hat Registry 下载它们。
- Ansible Core (通过 RHSM 安装)
- Ansible 执行程序(通过 RHSM 安装)
- Ansible Navigator (通过 RHSM 安装)
- Ansible Builder (通过 RHSM 安装)
- Ansible SDK (通过 RHSM 安装)
- Ansible 执行环境(通过 Red Hat Registry 下载)
您可以将所有 RHSM 组件安装为 All-One 或 individually。
1.3.1. all-In-One RHSM
要安装所有组件,请运行以下命令:
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner ansible-sdk
1.3.2. 独立 RHSM
您可以使用以下命令单独安装所需的组件:
Ansible 内核
sudo dnf install ansible-core
Ansible Builder
sudo dnf install ansible-builder
Ansible Runner
sudo dnf install ansible-runner
Ansible Navigator
sudo dnf install ansible-navigator
Ansible SDK
sudo dnf install ansible-sdk
1.3.3. 从 Red Hat Registry 下载
Ansible 执行环境在 Ansible 中被用作执行 Ansible 自动化的基准,或者可与 Ansible Builder 一起使用,以提供扩展的自动化兼容性以满足您的需要。
可用的红帽支持的执行环境有:
- 兼容性执行环境(ansible-automation-platform-24/ee-29-rhel8)
- EE-29 包含 ansible 2.9,用于与为之前版本的 Ansible Automation Platform 编写的 playbook 和内容兼容。
- 最小执行环境(ansible-automation-platform-23/ee-minimal-rhel8)
- EE-minimal 是 Red Hat Ansible Automation Platform 的自动化执行环境。ee-minimal 包含 ansible-core 2.13。
- 支持的执行环境(ansible-automation-platform-23/ee-supported-rhel8)
- EE 支持的是与 Red Hat Ansible Automation Platform 搭配使用的自动化执行环境。支持包含 ansible-core 2.13 和红帽提供的自动化内容集合。
镜像的拉取示例
所有镜像都可使用 Podman 拉取(pull)以及其它方法。以下是 Podman pull 的示例:
podman login registry.redhat.io Username: {REGISTRY-SERVICE-ACCOUNT-USERNAME} Password: {REGISTRY-SERVICE-ACCOUNT-PASSWORD} Login Succeeded! podman pull registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.13.4-1
如需其他可用的安装方法,请参阅 catalog.redhat.com。