|
|
|
@ -40,22 +40,22 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def runner_on_failed(self, host, res, ignore_errors=False):
|
|
|
|
|
self.logger.error('%s ansible-command: task execution FAILED; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
|
|
|
|
|
self.logger.error('%s ansible-command: task execution FAILED; host: %s; message: %s' % (self.hostname,host,self._dump_results(res)))
|
|
|
|
|
|
|
|
|
|
def runner_on_ok(self, host, res):
|
|
|
|
|
self.logger.info('%s ansible-command: task execution OK; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
|
|
|
|
|
self.logger.info('%s ansible-command: task execution OK; host: %s; message: %s' % (self.hostname,host,self._dump_results(res)))
|
|
|
|
|
|
|
|
|
|
def runner_on_skipped(self, host, item=None):
|
|
|
|
|
self.logger.info('%s ansible-command: task execution SKIPPED; host: %s; message: %s' % (self.hostname,host, 'skipped'))
|
|
|
|
|
|
|
|
|
|
def runner_on_unreachable(self, host, res):
|
|
|
|
|
self.logger.error('%s ansible-command: task execution UNREACHABLE; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
|
|
|
|
|
self.logger.error('%s ansible-command: task execution UNREACHABLE; host: %s; message: %s' % (self.hostname,host,self._dump_results(res)))
|
|
|
|
|
|
|
|
|
|
def runner_on_async_failed(self, host, res):
|
|
|
|
|
self.logger.error('%s ansible-command: task execution FAILED; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
|
|
|
|
|
self.logger.error('%s ansible-command: task execution FAILED; host: %s; message: %s' % (self.hostname,host,self._dump_results(res)))
|
|
|
|
|
|
|
|
|
|
def playbook_on_import_for_host(self, host, imported_file):
|
|
|
|
|
self.logger.info('%s ansible-command: playbook IMPORTED; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
|
|
|
|
|
self.logger.info('%s ansible-command: playbook IMPORTED; host: %s; message: %s' % (self.hostname,host,self._dump_results(res)))
|
|
|
|
|
|
|
|
|
|
def playbook_on_not_import_for_host(self, host, missing_file):
|
|
|
|
|
self.logger.info('%s ansible-command: playbook NOT IMPORTED; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
|
|
|
|
|
self.logger.info('%s ansible-command: playbook NOT IMPORTED; host: %s; message: %s' % (self.hostname,host,self._dump_results(res)))
|
|
|
|
|