Ansible Asynchronous actions

32 views
Skip to first unread message

Dip Giri

unread,
Mar 17, 2022, 2:40:57 AM3/17/22
to Ansible Project

- name: Check if database import is complete
async_status:
jid: "{{ output.ansible_job_id }}"
register: job_result
until: job_result.finished
delay: 10
retries: 25920
no_log: true
Screenshot from 2022-03-17 12-07-44.png

How to hide FAILED - RETRYING logs from async_status

Vladimir Botka

unread,
Mar 17, 2022, 7:20:20 AM3/17/22
to Dip Giri, ansible...@googlegroups.com
On Wed, 16 Mar 2022 23:40:57 -0700 (PDT)
Dip Giri <dipakgir...@gmail.com> wrote:

> How to hide FAILED - RETRYING logs from async_status

Use callback community.general.diy. For example

- async_status:
jid: "{{ output.ansible_job_id }}"
register: job_result
until: job_result.finished
delay: 10
retries: 25920
vars:
ansible_callback_diy_runner_retry_msg: ""

To see details run

shell> ansible-doc -t callback community.general.diy

--
Vladimir Botka
Reply all
Reply to author
Forward
0 new messages