-
Notifications
You must be signed in to change notification settings - Fork 145
/
main.yml
21 lines (20 loc) · 969 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: "Run the following infra.aap_configuration roles: {{ aap_configuration_dispatcher_roles | map(attribute='role') | join(', ') }}"
ansible.builtin.include_role:
name: "{{ __role.role }}"
apply:
tags: "{{ __role.tags }}"
when: vars[__role.var] is defined
tags: always
loop: "{{ aap_configuration_dispatcher_roles }}"
loop_control:
loop_var: __role
vars:
assign_galaxy_credentials_to_org: "{{ __role.assign_galaxy_credentials_to_org | default(false) }}"
assign_default_ee_to_org: "{{ __role.assign_default_ee_to_org | default(false) }}"
assign_notification_templates_to_org: "{{ __role.assign_notification_templates_to_org | default(false) }}"
- name: Fail the playbook if there were errors (check mode only)
ansible.builtin.fail:
msg: The execution has failed because of errors (probably due to missing dependencies caused by check mode).
when: ansible_check_mode and error_flag is defined and error_flag
...