|
- ---
- - name: In virtual network gateway state
- include: "{{ item.state | default('present', true) }}.yml"
- vars:
- vngw: "{{ item }}"
- when:
- - action is undefined
- - (vngws | default([], true) | length) > 0
- with_items: "{{ vngws }}"
-
- - name: Update/create virtual network gateway
- include: present.yml
- vars:
- vngw: "{{ item }}"
- when:
- - action is defined
- - action == 'present'
- - (vngws | default([], true) | length) > 0
- with_items: "{{ vngws }}"
-
- - name: Delete virtual network gateway
- include: absent.yml
- vars:
- vngw: "{{ item }}"
- when:
- - action is defined
- - action == 'absent'
- - (vngws | default([], true) | length) > 0
- with_items: "{{ vngws }}"
- ...
|