now item callback honors display_skipped_hosts

fixes #14956
This commit is contained in:
Brian Coca 2016-03-14 13:13:50 -04:00
parent 81788e627d
commit 2984ffdfac

View file

@ -206,6 +206,7 @@ class CallbackModule(CallbackBase):
self._handle_warnings(result._result)
def v2_playbook_item_on_skipped(self, result):
if C.DISPLAY_SKIPPED_HOSTS:
msg = "skipping: [%s] => (item=%s) " % (result._host.get_name(), self._get_item(result._result))
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result:
msg += " => %s" % self._dump_results(result._result)