mirror of https://github.com/ansible/ansible.git
Implement async callbacks (#74953)
* add changelog and output from default callback * add test * add comments about TE taskpull/75059/head
parent
ca6123e0ee
commit
703cb79442
@ -0,0 +1,4 @@
|
||||
minor_changes:
|
||||
- callback API - implemented ``v2_runner_on_async_ok`` and ``v2_runner_on_async_failed`` callbacks
|
||||
(https://github.com/ansible/ansible/pull/74953).
|
||||
- default callback plugin - displays output for ``v2_runner_on_async_ok`` and ``v2_runner_on_async_failed`` callbacks.
|
||||
@ -0,0 +1,14 @@
|
||||
---
|
||||
- hosts: testhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: test success async output
|
||||
command: sleep 1
|
||||
async: 10
|
||||
poll: 1
|
||||
|
||||
- name: test failure async output
|
||||
command: sleep 10
|
||||
async: 1
|
||||
poll: 1
|
||||
ignore_errors: yes
|
||||
Loading…
Reference in New Issue