1.5. 附加 Red Hat Ansible Automation Platform 订阅
在安装 Red Hat Ansible Automation Platform 前,您必须 在所有节点上具有有效的订阅。
简单内容访问(SCA)现在是所有红帽帐户的默认订阅方法。使用 SCA 时,您只需要将您的系统注册到 Red Hat Subscription Management (RHSM)或 Satellite 以访问内容。不再需要传统的基于池的订阅附加命令(如 subscription-manager attach --pool 或 subscription-manager attach --auto)。如需更多信息,请参阅 简单内容访问。
流程
使用红帽订阅管理注册您的系统:
sudo subscription-manager register --username <$INSERT_USERNAME_HERE> --password <$INSERT_PASSWORD_HERE>
$ sudo subscription-manager register --username <$INSERT_USERNAME_HERE> --password <$INSERT_PASSWORD_HERE>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用简单内容访问(SCA),注册是访问 Ansible Automation Platform 内容的唯一步骤。
对于仍使用旧的订阅池,您可能需要使用故障排除部分中显示的命令手动附加订阅。
验证
刷新系统中的订阅信息:
sudo subscription-manager refresh
$ sudo subscription-manager refreshCopy to Clipboard Copied! Toggle word wrap Toggle overflow 验证您的注册:
sudo subscription-manager identity
$ sudo subscription-manager identityCopy to Clipboard Copied! Toggle word wrap Toggle overflow 此命令显示您的系统身份、名称、机构名称和机构 ID,确认注册成功。
故障排除
对于不使用 SCA 的旧帐户,您可能需要手动附加订阅:
sudo subscription-manager list --available --all | grep "Ansible Automation Platform" -B 3 -A 6 sudo subscription-manager attach --pool=<pool_id>
$ sudo subscription-manager list --available --all | grep "Ansible Automation Platform" -B 3 -A 6 $ sudo subscription-manager attach --pool=<pool_id>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 注意不要使用 MCT4022 作为
pool_id,因为它可能会导致订阅附加失败。如果您无法找到与 Ansible Automation Platform 安装程序捆绑的某些软件包,或者您看到
配置消息禁用的 Repositories,请尝试使用以下命令启用存储库:RHEL 9 的 Ansible Automation Platform 2.5
sudo subscription-manager repos --enable ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms
$ sudo subscription-manager repos --enable ansible-automation-platform-2.5-for-rhel-9-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ansible Automation Platform 2.5 for RHEL 10
sudo subscription-manager repos --enable ansible-automation-platform-2.5-for-rhel-10-x86_64-rpms
$ sudo subscription-manager repos --enable ansible-automation-platform-2.5-for-rhel-10-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow