1.5.2. 设置 Ansible Automation Platform
使用 Ansible Automation Platform 作业,您可以自动执行任务并与外部服务(如 Slack 和 PagerDuty 服务)集成。您的 Git 仓库资源根路径将包含用于部署应用程序、更新应用程序或从集群中删除应用程序一部分的 Ansible Automation Platform 作业的 prehook 和 posthook 目录。
需要的访问权限:集群管理员
1.5.2.1. 先决条件 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- 安装受支持的 OpenShift Container Platform 版本。
- 安装 Ansible Automation Platform。请参阅Red Hat Ansible Automation Platform文档,安装最新支持的版本。
- 安装 Ansible Automation Platform Resource Operator,将 Ansible Automation Platform 作业连接到 Git 订阅的生命周期。确保 Ansible Automation Platform 作业模板具有幂等性。
- 您可以在与 hub 集群不同的集群中安装 Ansible Automation Platform Resource Operator。如果在 hub 集群中安装 Ansible Automation Platform Resource Operator,Operator 必须与 Ansible Automation Platform Tower 相同。
-
在模板上为
INVENTORY和EXTRA VARIABLES选择PROMPT ON LAUNCH。如需更多信息,请参阅 作业模板。