Red Hat Ansible 额外安装指南


Red Hat Ansible Inside 1.3

安装和配置红帽内部

Red Hat Customer Content Services

摘要

使用红帽 Ansible 内部,通过 Ansible 组件的命令行界面在应用程序中集成 Ansible 自动化。

对红帽文档提供反馈

如果您对本文档有任何改进建议,或发现错误,请通过 https://access.redhat.com 联系技术支持来创建一个请求。

第 1 章 简介

Red Hat Ansible Inside 1.3 是 Ansible Executor (runner)、Ansible Core、Ansible Automation content navigator、Ansible Builder 和 Ansible 自动化执行环境的产品捆绑包。Ansible 内部允许使用 Ansible 组件的命令行界面在应用程序内集成 Ansible 自动化。

第 2 章 在内部安装 Red Hat Ansible

您可以使用 Red Hat Subscription Manager (RHSM)安装以下 Red Hat Ansible Inside 组件。或者,您可以从 Red Hat Registry 下载它们。

  • Ansible Core (通过 RHSM 安装)
  • Ansible Executor (通过 RHSM 安装)
  • Ansible Navigator (通过 RHSM 安装)
  • Ansible Builder (通过 RHSM 安装)
  • Ansible SDK (通过 RHSM 安装)
  • Ansible 执行环境(通过 Red Hat Registry 下载)

您可以将所有 RHSM 组件作为 All-In-One 或单独安装。

2.1. 先决条件

Ansible 额外需要在 SKU 中对 Ansible 进行有效的订阅,并启用相应的 Red Hat Subscription Manager (RHSM)存储库。

请联系红帽客户支持或红帽销售以购买或附加订阅。

在将有效的 Ansible Inside 订阅附加到 Red Hat Subscription Manager 中的机构后,您可以启用所需的存储库,如下所示:

  • RHEL 8
sudo subscription-manager repos --enable=ansible-inside-1.3-for-rhel-8-x86_64-rpms
  • RHEL 9
sudo subscription-manager repos --enable=ansible-inside-1.3-for-rhel-9-x86_64-rpms

启用存储库后,您可以继续安装 Ansible 组件。

2.2. 使用 Red Hat Subscription Manager (RHSM)安装

2.2.1. all-In-One RHSM

要安装所有组件,请运行以下命令:

RHEL 8
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner python39-ansible-sdk
RHEL 9
sudo dnf install ansible-navigator ansible-core ansible-builder ansible-runner python3-ansible-sdk

2.2.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

RHEL 8
sudo dnf install python39-ansible-sdk
RHEL 9
sudo dnf install python3-ansible-sdk

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 以及红帽支持的自动化内容集合。

拉取镜像示例

您可以使用 Podman 等容器引擎拉取镜像。以下示例使用 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.16.9-2

有关其他可用的安装方法,请参阅 catalog.redhat.com。

法律通告

Copyright © 2025 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat, Inc.