mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Add note in documentation and add warning related to retries parameter used without until (#28078)
This commit is contained in:
parent
51c0d46056
commit
d733f5af06
2 changed files with 3 additions and 0 deletions
|
@ -449,6 +449,8 @@ been retried for 5 times with a delay of 10 seconds. The default value for "retr
|
||||||
The task returns the results returned by the last task run. The results of individual retries can be viewed by -vv option.
|
The task returns the results returned by the last task run. The results of individual retries can be viewed by -vv option.
|
||||||
The registered variable will also have a new key "attempts" which will have the number of the retries for the task.
|
The registered variable will also have a new key "attempts" which will have the number of the retries for the task.
|
||||||
|
|
||||||
|
.. note:: If "until" parameter isn't defined, the value for "retries" is forced to 1.
|
||||||
|
|
||||||
.. _with_first_found:
|
.. _with_first_found:
|
||||||
|
|
||||||
Finding First Matched Files
|
Finding First Matched Files
|
||||||
|
|
|
@ -509,6 +509,7 @@ class TaskExecutor:
|
||||||
retries += 1
|
retries += 1
|
||||||
else:
|
else:
|
||||||
retries = 1
|
retries = 1
|
||||||
|
display.warning("The parameter 'retries' hasn't been defined, the value for 'retries' is forced to 1.")
|
||||||
|
|
||||||
delay = self._task.delay
|
delay = self._task.delay
|
||||||
if delay < 0:
|
if delay < 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue