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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| jid | string | yes | Job or task identifier | |
| mode | string | status | If 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