Remove async for network deletion
This commit is contained in:
parent
2e9f4b8f06
commit
cfdb264fe5
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user