how to abort ansible execution in callback

11 views
Skip to first unread message

Leon Xie

unread,
Dec 4, 2015, 1:35:50 AM12/4/15
to Ansible Project
hi all,

I want to abort entire ansible execution in a callback file.
how could I implement that?

The below code doesn't work:

def runner_on_failed(self, host, res, ignore_errors=False):
     sys.exit(1)

thanks a lot in advance.


Reply all
Reply to author
Forward
0 new messages