less than 1 minute read

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