Excerpts from Michael DeHaan's message of 2013-12-01 08:56:27 -0500:
> "Okay, what about making ansible run any queued up handlers just before
> exiting, even if it exits due to an error condition in a playbook?"
>
> Yep, that's what I was thinking of this morning.
>
> I still think we *may* want that behavior to be flag/setting controlled.
Perhaps, alternatively, we could have an additional key for plays called
"cleanup_tasks" or some such that means "run everything here no matter
what happens". Or a key for handlers that specifies a handler as
a "cleanup" handler and thus should run even if the play fails. Or
a "notify_on_failure" or "notify_when" that is used next to a "notify"
and specifies under what conditions the handlers ought to be executed?
I'm just snowballin' here. I'm rappin' wit ya.
--
Morgan Hamill