You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If retries is changed to >2 (e.g. 3), foo.sh is still executed only 2 times, but playbook execution is marked as successful.
If line failed_when: result.rc != 0 is added to the task, playbook execution works without any problems. (But one would expect that this "implicit" failed_when clause is not needed)
The text was updated successfully, but these errors were encountered:
Prior to this patch, the retry/until logic would fail any task that
succeeded if it took all of the alloted retries to succeed. This patch
reworks the retry/until logic to make things more simple and clear.
Fixes#15697
Prior to this patch, the retry/until logic would fail any task that
succeeded if it took all of the alloted retries to succeed. This patch
reworks the retry/until logic to make things more simple and clear.
Fixes#15697
We believe the above commit should resolve this problem for you. This will also be included in the next release.
If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.
ISSUE TYPE
ANSIBLE VERSION
(tested also on current devel -
c42501c
with same result)CONFIGURATION
default
OS / ENVIRONMENT
N/A
SUMMARY
Ansible fails when
until
condition is true on last retry.STEPS TO REPRODUCE
site.yml
foo.sh
(this script basically returns exit code 1 on first run and 0 on second run)
EXPECTED RESULTS
Expected result would be to successfully execute playbook without any errors, because second exit code (
rc
) of execution offoo.sh
is0
.ACTUAL RESULTS
retries
is changed to >2 (e.g. 3),foo.sh
is still executed only 2 times, but playbook execution is marked as successful.failed_when: result.rc != 0
is added to the task, playbook execution works without any problems. (But one would expect that this "implicit"failed_when
clause is not needed)The text was updated successfully, but these errors were encountered: