mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
3b80f63e22
commit
e86259cdf3
1 changed files with 1 additions and 1 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Reference in a new issue