From 1b2cbf1e002ba850b2b89ee5fd078a3a7aaa2e9a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 1 Mar 2018 03:19:09 +0545 Subject: [PATCH] examples: longer (but still crap) async_polling.yml --- examples/playbook/async_polling.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/examples/playbook/async_polling.yml b/examples/playbook/async_polling.yml index f15aba71..f4dcd96d 100644 --- a/examples/playbook/async_polling.yml +++ b/examples/playbook/async_polling.yml @@ -4,7 +4,14 @@ gather_facts: false tasks: - - name: simulate long running op (15 sec), wait for up to 45 sec, poll every 5 sec - command: /bin/sleep 10 - async: 15 - poll: 1 + - name: simulate long running op (3 sec), wait for up to 5 sec, poll every 1 sec + command: /bin/sleep 2 + async: 4 + register: derp + + - debug: msg={{derp}} + + - async_status: jid={{derp.ansible_job_id}} + register: derp2 + + - debug: msg={{derp2}}