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 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
