Merge pull request #30 from hetznercloud/bug/fix-network-deletion
Remove async for network deletion
This commit is contained in:
commit
79567304dd
@ -67,17 +67,6 @@
|
|||||||
state: absent
|
state: absent
|
||||||
register: networks
|
register: networks
|
||||||
loop: "{{ instance_conf|subelements('networks', skip_missing=True) }}"
|
loop: "{{ instance_conf|subelements('networks', skip_missing=True) }}"
|
||||||
async: 7200
|
|
||||||
poll: 0
|
|
||||||
|
|
||||||
- name: Wait for network(s) deletion to complete
|
|
||||||
async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
register: hetzner_networks
|
|
||||||
until: hetzner_networks.finished
|
|
||||||
retries: 300
|
|
||||||
when: networks.changed
|
|
||||||
with_items: "{{ networks.results }}"
|
|
||||||
|
|
||||||
- name: Remove registered SSH key
|
- name: Remove registered SSH key
|
||||||
hcloud_ssh_key:
|
hcloud_ssh_key:
|
||||||
|
@ -63,17 +63,6 @@
|
|||||||
state: absent
|
state: absent
|
||||||
register: networks
|
register: networks
|
||||||
loop: "{{ instance_conf|subelements('networks', skip_missing=True) }}"
|
loop: "{{ instance_conf|subelements('networks', skip_missing=True) }}"
|
||||||
async: 7200
|
|
||||||
poll: 0
|
|
||||||
|
|
||||||
- name: Wait for network(s) deletion to complete
|
|
||||||
async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
register: hetzner_networks
|
|
||||||
until: hetzner_networks.finished
|
|
||||||
retries: 300
|
|
||||||
when: networks.changed
|
|
||||||
with_items: "{{ networks.results }}"
|
|
||||||
|
|
||||||
- name: Remove registered SSH key
|
- name: Remove registered SSH key
|
||||||
hcloud_ssh_key:
|
hcloud_ssh_key:
|
||||||
|
@ -66,17 +66,6 @@
|
|||||||
state: absent
|
state: absent
|
||||||
register: networks
|
register: networks
|
||||||
loop: "{{ instance_conf|subelements('networks', skip_missing=True) }}"
|
loop: "{{ instance_conf|subelements('networks', skip_missing=True) }}"
|
||||||
async: 7200
|
|
||||||
poll: 0
|
|
||||||
|
|
||||||
- name: Wait for network(s) deletion to complete
|
|
||||||
async_status:
|
|
||||||
jid: "{{ item.ansible_job_id }}"
|
|
||||||
register: hetzner_networks
|
|
||||||
until: hetzner_networks.finished
|
|
||||||
retries: 300
|
|
||||||
when: networks.changed
|
|
||||||
with_items: "{{ networks.results }}"
|
|
||||||
|
|
||||||
- name: Remove registered SSH key
|
- name: Remove registered SSH key
|
||||||
hcloud_ssh_key:
|
hcloud_ssh_key:
|
||||||
|
Loading…
Reference in New Issue
Block a user