1.4. Ansible 验证的内容
Red Hat Ansible Automation Platform 包括 Ansible 验证的内容(Ansible validated content),可补充现有 Red Hat Ansible 认证的内容。
Ansible 验证的内容提供了一个由专家领导的路径,用于在各种平台(包括红帽和合作伙伴的平台)上执行操作任务,。
1.4.1. 使用安装程序配置验证的集合 复制链接链接已复制到粘贴板!
当您下载并运行捆绑包安装程序时,认证和验证的集合会自动上传。认证的集合上传到 rh-certified 存储库中。验证的集合上传到 validated 的存储库。
您可以使用两个变量修改默认配置:
-
automationhub_seed_collections是一个布尔值,用于定义是否启用预加载。 -
automationhub_collection_seed_repository.可让您指定在设置为true时上传的内容类型的变量。可能的值是certified或validated。如果缺少这两个,内容集会被上传。
1.4.2. 使用 tarball 安装验证的内容 复制链接链接已复制到粘贴板!
如果您不使用捆绑包安装程序,您可以使用独立 tarball ansible-validated-content-bundle-1.tar.gz。您还可以稍后使用此独立 tarball 更新任何环境中验证的内容,当一个较新的 tarball 可用时,无需重新运行捆绑包安装程序。
前提条件
您需要以下变量来运行 playbook。
| Name | 描述 |
|---|---|
|
| 您的管理密码。 |
|
| 为自动化中心生成的 API 令牌。 |
|
|
例如 |
|
|
布尔值( 这必须与自动化中心部署期间使用的值匹配。
安装程序将此变量设置为 |
流程
- 要获取 tarball,进入到 Red Hat Ansible Automation Platform 下载页,然后选择 Ansible Validated Content。
上传内容并定义变量(本例使用
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注意使用
automationhub_admin_password或automationhub_api_token,而不是两者同时使用。
完成后,集合会在私有自动化中心的验证集合部分中看到。用户现在可以从私有自动化中心查看和下载集合。