-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle ignore_errors in loop #32546
handle ignore_errors in loop #32546
Conversation
Results in the error:
On branch |
ensures we get both a templated ignore_errors and a correct 'summary' result for ignore_errors when used in loops fixes ansible#32384
bed5ac1
to
cc456bc
Compare
@guenhter sorry, try again now, i ended up finding a deeper error and ran through several iterations, but at this point it should be correct for all cases. |
@bcoca I checked and there is one thing left I don't completely understand (and maybe isn't even a bug). In the playbook above: When I use:
This works perfectly fine. BUT
seems always evaluate to I wasn't sure if this is expected so I checked with
This does exactly what I expect: when the variable is true, it show a change in the recap, if the variable is false it doesn't. So the good news is, that your fix is working with the |
|
Ok, thanks for the clarification. Than this seems fine. |
For information: Maybe this fix must be integrated with future version 2.3.3, no ? |
SUMMARY
most worked by accident, not using the correct task values
fixes #32384
ISSUE TYPE
COMPONENT NAME
core
ANSIBLE VERSION