2.5. 附加 Red Hat Ansible Automation Platform 订阅
在安装 Red Hat Ansible Automation Platform 前,您必须在所有节点上附加了有效的订阅。附加 Ansible Automation Platform 订阅后,可以访问继续安装所需的仅订阅资源。
步骤
确定您的系统已注册:
$ sudo subscription-manager register --username <$INSERT_USERNAME_HERE> --password <$INSERT_PASSWORD_HERE>
获取 Red Hat Ansible Automation Platform 订阅的
pool_id
:$ sudo subscription-manager list --available --all | grep "Ansible Automation Platform" -B 3 -A 6
注意不要将 MCT4022 用作订阅的
pool_id
,因为它可能会导致 Ansible Automation Platform 订阅附加失败。示例
subsciption-manager list
命令的输出示例。获取Pool ID:
部分中的pool_id
:Subscription Name: Red Hat Ansible Automation, Premium (5000 Managed Nodes) Provides: Red Hat Ansible Engine Red Hat Ansible Automation Platform SKU: MCT3695 Contract: ```` Pool ID: <pool_id> Provides Management: No Available: 4999 Suggested: 1
附加订阅:
$ sudo subscription-manager attach --pool=<pool_id>
现在,您已将 Red Hat Ansible Automation Platform 订阅附加到所有节点。
要删除此订阅,请输入以下命令:
$ sudo subscription-manager remove --pool=<pool_id>
验证
- 验证订阅是否已成功附加:
$ sudo subscription-manager list --consumed
故障排除
如果您无法找到与 Ansible Automation Platform 安装程序捆绑的某些软件包,或者您看到
配置消息禁用的 Repositories
,请尝试使用以下命令启用存储库:Red Hat Ansible Automation Platform 2.5 for RHEL 8
$ sudo subscription-manager repos --enable ansible-automation-platform-2.5-for-rhel-8-x86_64-rpms
Red Hat Ansible Automation Platform 2.5 for RHEL 9
$ sudo subscription-manager repos --enable ansible-automation-platform-2.5-for-rhel-9-x86_64-rpms