May 2025
Intermediate to advanced
472 pages
6h 6m
Chinese
本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com
Ansible Automation Platform是 Red Hat 提供的商业软件产品 。Ansible Automation Platform 2 是面向企业的下一代自动化平台。它由重新架构的Automation Controller 4(以前称为 Tower/AWX)和Automation Hub(取代企业内部 Ansible Galaxy 的 Ansible 内容存储库)组成。您可以根据组织的管理策略对 Automation Hub 进行整理,或者直接与社区内容同步。例 23-1是 Automation Hub 管理员可以上传的文件(见图 23-1)。它定义了 Automation Hub 将在本地网络上提供服务的集合。Automation Hub 需要连接互联网才能下载这些内容。
---
collections:
# Install collections from Ansible Galaxy.
- name: ansible.windows
source: https://galaxy.ansible.com
- name: ansible.utils
source: https://galaxy.ansible.com
- name: awx.awx
source: https://galaxy.ansible.com
- name: community.crypto
source: https://galaxy.ansible.com
- name: community.docker
source: https://galaxy.ansible.com
- name: community.general
source: https://galaxy.ansible.com
- name: community.kubernetes
source: https://galaxy.ansible.com
...
如果使用 Ansible Automation Platform 2 中的 Private Automation Hub,可以在ansible.cfg中为ansible-galaxy 命令配置多个服务器 (例 23-2)。
[galaxy] server_list = automation_hub, release_galaxy, my_org_hub, my_test_hub [galaxy_server.automation_hub] url=https://cloud.redhat.com/api/automation-hub/ auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token token=my_ah_token [galaxy_server.release_galaxy] ...
Read now
Unlock full access