Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
support async in destroy tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-joker committed Jan 21, 2021
1 parent 991d542 commit 109667f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@
name: "{{ item.name }}"
force: true
state: absent
async: 7200
poll: 0
register: async_results
with_items: "{{ molecule_yml.platforms }}"

- name: Check the test instance creation status
async_status:
jid: "{{ item.ansible_job_id }}"
loop: "{{ async_results.results }}"
register: server
until: server.finished
delay: 10
retries: 300
{%- endraw %}

0 comments on commit 109667f

Please sign in to comment.