mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
@@ -113,7 +113,7 @@ class CallbackBase:
|
||||
else:
|
||||
self.v2_playbook_item_on_ok(newres)
|
||||
|
||||
del result._result['results']
|
||||
#del result._result['results']
|
||||
|
||||
def set_play_context(self, play_context):
|
||||
pass
|
||||
|
||||
@@ -68,10 +68,11 @@ class CallbackModule(CallbackBase):
|
||||
|
||||
if result._task.loop and 'results' in result._result:
|
||||
self._process_items(result)
|
||||
else:
|
||||
|
||||
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result and result._task.action != 'include':
|
||||
msg += " => %s" % self._dump_results(result._result)
|
||||
self._display.display(msg, color=color)
|
||||
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and not '_ansible_verbose_override' in result._result and result._task.action != 'include':
|
||||
msg += " => %s" % self._dump_results(result._result)
|
||||
self._display.display(msg, color=color)
|
||||
|
||||
self._handle_warnings(result._result)
|
||||
|
||||
|
||||
@@ -412,7 +412,9 @@ class StrategyBase:
|
||||
|
||||
# set the vars for this task from those specified as params to the include
|
||||
for b in block_list:
|
||||
b.vars.update(included_file._args.copy())
|
||||
temp_vars = b.vars.copy()
|
||||
temp_vars.update(included_file._args.copy())
|
||||
b.vars = temp_vars
|
||||
|
||||
return block_list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user