-
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
always in block isn't triggered after failure of task from include #15623
Comments
/cc @jimi-c possible dynamic includes issue? |
* Don't filter hosts remaining based on their failed state. Instead rely on the PlayIterator to return None/ITERATING_COMPLETE when the host is failed. * In the free strategy, make sure we wait outside the host loop for all pending results to be processed. * Use the internal _set_failed_state() instead of manually setting things when a failed child state is hit Fixes #15623
@rudimeyer the above patch resolves the issue for me (as well as fixing at least one other issue I found during testing). If you could also do some testing with any real-world playbooks you might have I'd appreciate it. |
@rudimeyer (or anyone else): have you had any chance to confirm whether this patch/feature branch works for you? |
* Don't filter hosts remaining based on their failed state. Instead rely on the PlayIterator to return None/ITERATING_COMPLETE when the host is failed. * In the free strategy, make sure we wait outside the host loop for all pending results to be processed. * Use the internal _set_failed_state() instead of manually setting things when a failed child state is hit Fixes #15623
As there has been no feedback, I've gone ahead and merged this in, as it fixes the reported issue. 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. Thank you! |
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A
SUMMARY
When task in included task-file in role fails, 'always' part of block is not run.
STEPS TO REPRODUCE
EXPECTED RESULTS
After failed task in included file, 'always' part of the block should be run before play is terminated
ACTUAL RESULTS
When task in included file fails the play is stopped without going through the 'always' part of the block.
The text was updated successfully, but these errors were encountered: