mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
parent
bced8715cd
commit
746ea64d30
3 changed files with 36 additions and 1 deletions
|
@ -430,11 +430,13 @@ class TaskExecutor:
|
|||
|
||||
# Read some values from the task, so that we can modify them if need be
|
||||
if self._task.until:
|
||||
retries = self._task.retries + 1
|
||||
retries = self._task.retries
|
||||
if retries is None:
|
||||
retries = 3
|
||||
elif retries <= 0:
|
||||
retries = 1
|
||||
else:
|
||||
retries += 1
|
||||
else:
|
||||
retries = 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue