|
1 | 1 | --- |
2 | 2 | - name: Organizations | Configuration # noqa fqcn[action-core] |
3 | 3 | ansible.platform.organization: |
4 | | - name: "{{ __gateway_organizations_item.name | mandatory }}" |
5 | | - new_name: "{{ __gateway_organizations_item.new_name | default(omit) }}" |
6 | | - description: "{{ __gateway_organizations_item.description | default(omit) }}" |
7 | | - state: "{{ __gateway_organizations_item.state | default(platform_state | default(omit, true)) }}" |
| 4 | + name: "{{ __gateway_organization_item.name | mandatory }}" |
| 5 | + new_name: "{{ __gateway_organization_item.new_name | default(omit) }}" |
| 6 | + description: "{{ __gateway_organization_item.description | default(omit) }}" |
| 7 | + state: "{{ __gateway_organization_item.state | default(platform_state | default(omit, true)) }}" |
8 | 8 |
|
9 | 9 | # Role Standard Options |
10 | 10 | gateway_hostname: "{{ aap_hostname | default(omit, true) }}" |
|
15 | 15 | gateway_validate_certs: "{{ aap_validate_certs | default(omit) }}" |
16 | 16 | loop: "{{ aap_organizations }}" |
17 | 17 | loop_control: |
18 | | - loop_var: __gateway_organizations_item |
19 | | - label: "{{ __operation.verb }} AAP Platform Organizations {{ __gateway_organizations_item.name }}" |
| 18 | + loop_var: __gateway_organization_item |
| 19 | + label: "{{ __operation.verb }} AAP Platform Organizations {{ __gateway_organization_item.name }}" |
20 | 20 | pause: "{{ gateway_organizations_loop_delay }}" |
21 | 21 | no_log: "{{ gateway_organizations_secure_logging }}" |
22 | 22 | async: 1000 |
23 | 23 | poll: 0 |
24 | 24 | register: __gateway_organizations_job_async |
25 | 25 | changed_when: not __gateway_organizations_job_async.changed |
26 | 26 | vars: |
27 | | - __operation: "{{ operation_translate[__gateway_organizations_item.state | default(platform_state) | default('present')] }}" |
| 27 | + __operation: "{{ operation_translate[__gateway_organization_item.state | default(platform_state) | default('present')] }}" |
28 | 28 | ansible_async_dir: "{{ aap_configuration_async_dir }}" |
29 | 29 |
|
30 | 30 | - name: Organizations | Wait for finish the configuration |
|
37 | 37 | loop: "{{ __gateway_organizations_job_async.results }}" |
38 | 38 | loop_control: |
39 | 39 | loop_var: __gateway_organizations_job_async_results_item |
40 | | - label: "{{ __operation.verb }} AAP Platform Organizations {{ __gateway_organizations_job_async_result.__gateway_organizations_item.name }} | Wait for finish the Organizations {{ __operation.action }}" |
| 40 | + label: "{{ __operation.verb }} AAP Platform Organizations {{ __gateway_organizations_job_async_result.__gateway_organizations_job_async_results_item.__gateway_organization_item.name }} | Wait for finish the Organizations {{ __operation.action }}" |
41 | 41 | when: __gateway_organizations_job_async_results_item.ansible_job_id is defined |
42 | 42 | no_log: "{{ gateway_organizations_secure_logging }}" |
43 | 43 | vars: |
|
0 commit comments