How to start asynchronous task and check status
Start the asynchronous task and check status later
- name: Run sleep
shell: sleep 30
async: 30
poll: 0
register: async_output
- debug:
msg: "Started an async job "
- name: check async status
async_status:
jid: ""
register: async_result
until: async_result.finished
retries: 50
delay: 5
Leave a comment