async_status

Collection: builtin

Full Name: parallax.builtin.async_status

Aliases: ansible.builtin.async_status, async_status

Synopsis

Poll the status of a task started with async

Parameters

NameTypeRequiredDefaultDescription
jidstringyesJob or task identifier
modestringstatusIf status, obtain the status Choices: cleanup, status

Example

- name: Wait for the background job to finish
  async_status:
    jid: "{{ slow_task.ansible_job_id }}"
  register: job
  until: job.finished
  retries: 30
  delay: 10