6.2. 使用 tarball 安装验证的内容
如果您没有使用捆绑包安装程序,可以使用一个单独的 tarball,ansible-validated-content-bundle-1.tar.gz。这个独立的 tarball 也可以在以后使用以在任何环境中更新验证的内容,当有较新的 tarball 可用时,无需重新运行捆绑包安装程序。
要获取 tarball,请导航到 Red Hat Ansible Automation Platform 下载页面,然后选择 Ansible Validated Content。
您需要以下变量来运行 playbook。
| Name | 描述 |
|---|---|
|
| 您的管理密码。 |
|
| 为自动化中心生成的 API 令牌。 |
|
|
例如 |
|
|
布尔值( 这必须与自动化中心部署期间使用的值匹配。
安装程序将此变量设置为 |
使用 automationhub_admin_password 或 automationhub_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。
完成后,集合会在私有自动化中心的验证集合部分中看到。