3.5. 在自动化中心中配置代理设置
如果您的私有自动化中心位于网络代理后面,您可以在远程上配置代理设置,以同步位于本地网络之外的内容。
先决条件
- 您有修改 Ansible 存储库内容的权限。有关权限的更多信息,请参阅 访问管理和身份验证。
您有一个
requirements.yml文件,用于标识要从 Ansible Galaxy 同步的集合,如下例所示:Requirements.yml 示例
collections: # Install a collection from Ansible Galaxy. - name: community.aws version: 5.2.0 source: https://galaxy.ansible.comcollections: # Install a collection from Ansible Galaxy. - name: community.aws version: 5.2.0 source: https://galaxy.ansible.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow
流程
- 登录到 Ansible Automation Platform。
-
在导航面板中,选择
。 - 在 Community remote 的 Details 选项卡中,点 。
-
在 YAML requirements 字段中,粘贴
requirements.yml文件的内容。 - 单击 。
结果
现在,您可以将 requirements.yml 文件中标识的集合从 Ansible Galaxy 同步到私有自动化中心。
后续步骤