附录 C. supplemental
C.1. 配置自动化控制器 playbook 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
--- - name: Playbook to configure ansible Controller post installation hosts: localhost connection: local vars: controller_validate_certs: false collections: - awx.awx - redhat_cop.controller_configuration roles: - {role: settings, when: controller_settings is defined, tags: settings} - {role: organizations, when: controller_organizations is defined, tags: organizations} - {role: labels, when: controller_labels is defined, tags: labels} - {role: users, when: controller_user_accounts is defined, tags: users} - {role: teams, when: controller_teams is defined, tags: teams} - {role: credential_types, when: controller_credential_types is defined, tags: credential_types} - {role: credentials, when: controller_credentials is defined, tags: credentials} - {role: credential_input_sources, when: controller_credential_input_sources is defined, tags: credential_input_sources} - {role: notification_templates, when: controller_notifications is defined, tags: notification_templates} - {role: projects, when: controller_projects is defined, tags: projects} - {role: execution_environments, when: controller_execution_environments is defined, tags: execution_environments} - {role: applications, when: controller_applications is defined, tags: applications} - {role: inventories, when: controller_inventories is defined, tags: inventories} - {role: instance_groups, when: controller_instance_groups is defined, tags: instance_groups} - {role: project_update, when: controller_projects is defined, tags: projects} - {role: inventory_sources, when: controller_inventory_sources is defined, tags: inventory_sources} - {role: inventory_source_update, when: controller_inventory_sources is defined, tags: inventory_sources} - {role: hosts, when: controller_hosts is defined, tags: hosts} - {role: groups, when: controller_groups is defined, tags: inventories} - {role: job_templates, when: controller_templates is defined, tags: job_templates} - {role: workflow_job_templates, when: controller_workflows is defined, tags: workflow_job_templates} - {role: schedules, when: controller_schedules is defined, tags: schedules} - {role: roles, when: controller_roles is defined, tags: roles}
---
- name: Playbook to configure ansible Controller post installation
hosts: localhost
connection: local
vars:
controller_validate_certs: false
collections:
- awx.awx
- redhat_cop.controller_configuration
roles:
- {role: settings, when: controller_settings is defined, tags: settings}
- {role: organizations, when: controller_organizations is defined, tags: organizations}
- {role: labels, when: controller_labels is defined, tags: labels}
- {role: users, when: controller_user_accounts is defined, tags: users}
- {role: teams, when: controller_teams is defined, tags: teams}
- {role: credential_types, when: controller_credential_types is defined, tags: credential_types}
- {role: credentials, when: controller_credentials is defined, tags: credentials}
- {role: credential_input_sources, when: controller_credential_input_sources is defined, tags: credential_input_sources}
- {role: notification_templates, when: controller_notifications is defined, tags: notification_templates}
- {role: projects, when: controller_projects is defined, tags: projects}
- {role: execution_environments, when: controller_execution_environments is defined, tags: execution_environments}
- {role: applications, when: controller_applications is defined, tags: applications}
- {role: inventories, when: controller_inventories is defined, tags: inventories}
- {role: instance_groups, when: controller_instance_groups is defined, tags: instance_groups}
- {role: project_update, when: controller_projects is defined, tags: projects}
- {role: inventory_sources, when: controller_inventory_sources is defined, tags: inventory_sources}
- {role: inventory_source_update, when: controller_inventory_sources is defined, tags: inventory_sources}
- {role: hosts, when: controller_hosts is defined, tags: hosts}
- {role: groups, when: controller_groups is defined, tags: inventories}
- {role: job_templates, when: controller_templates is defined, tags: job_templates}
- {role: workflow_job_templates, when: controller_workflows is defined, tags: workflow_job_templates}
- {role: schedules, when: controller_schedules is defined, tags: schedules}
- {role: roles, when: controller_roles is defined, tags: roles}