corrected no_log for items and skipped tasks

corrected output from default callback
added new tests for no_log loops
updated makefile test to check for both positive and negative occurrences of no_log
This commit is contained in:
Brian Coca 2015-10-02 14:33:02 -04:00
parent 86ef20c73b
commit e2ae3215f6
5 changed files with 16 additions and 13 deletions

View file

@ -277,7 +277,7 @@ class TaskExecutor:
# variable not being present which would otherwise cause validation to fail
if not self._task.evaluate_conditional(templar, variables):
self._display.debug("when evaulation failed, skipping this task")
return dict(changed=False, skipped=True, skip_reason='Conditional check failed')
return dict(changed=False, skipped=True, skip_reason='Conditional check failed', _ansible_no_log=self._play_context.no_log)
# Now we do final validation on the task, which sets all fields to their final values.
# In the case of debug tasks, we save any 'var' params and restore them after validating