6.2. 使用 tarball 安装验证的内容

如果您没有使用捆绑包安装程序,可以使用一个单独的 tarball,ansible-validated-content-bundle-1.tar.gz。这个独立的 tarball 也可以在以后使用以在任何环境中更新验证的内容,当有较新的 tarball 可用时,无需重新运行捆绑包安装程序。

要获取 tarball,请导航到 Red Hat Ansible Automation Platform 下载页面,然后选择 Ansible Validated Content

您需要以下变量来运行 playbook。

Name描述

automationhub_admin_password

您的管理密码。

automationhub_api_token

为自动化中心生成的 API 令牌。

automationhub_main_url

例如 :https://automationhub.example.com

automationhub_require_content_approval

布尔值(truefalse)

这必须与自动化中心部署期间使用的值匹配。

安装程序将此变量设置为 true

注意

使用 automationhub_admin_passwordautomationhub_api_token,而不是两者同时使用。

上传内容并定义变量(本例使用 automationhub_api_token):

ansible-playbook collection_seed.yml
-e automationhub_api_token=<api_token>
-e automationhub_main_url=https://automationhub.example.com
-e automationhub_require_content_approval=true

如需有关运行 ansible playbook 的更多信息,请参阅 ansible-playbook

完成后,集合会在私有自动化中心的验证集合部分中看到。