From e86259cdf398eb0caf6c831a4f2c784b944cb6b7 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 6 Dec 2014 21:24:50 -0500 Subject: [PATCH] Docfix: running background tasks without polling Fix the example in the doc to explicitly set the poll interval to zero so the job doesn't poll. To run a background task without polling, you need to set the poll interval to zero. However, Ansible's default poll setting is 15 seconds, so not specifying the poll interval will cause a background job to poll. --- docsite/rst/intro_adhoc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/intro_adhoc.rst b/docsite/rst/intro_adhoc.rst index 2646945be4d..770c2bd5be6 100644 --- a/docsite/rst/intro_adhoc.rst +++ b/docsite/rst/intro_adhoc.rst @@ -230,7 +230,7 @@ checked on later. The same job ID is given to the same task on all hosts, so you won't lose track. If you kick hosts and don't want to poll, it looks like this:: - $ ansible all -B 3600 -a "/usr/bin/long_running_operation --do-stuff" + $ ansible all -B 3600 -P 0 -a "/usr/bin/long_running_operation --do-stuff" If you do decide you want to check on the job status later, you can::