Merge pull request #1195 from ryanpetrello/dont_log_task_args

only record task.args in the callback plugin if `DISPLAY_ARGS_TO_STDOUT`
This commit is contained in:
Ryan Petrello
2018-04-03 12:44:53 -04:00
committed by GitHub
3 changed files with 15 additions and 17 deletions

View File

@@ -235,12 +235,6 @@ class BasePlaybookEvent(CreatedModifiedModel):
if res.get('changed', False):
self.changed = True
updated_fields.add('changed')
# If we're not in verbose mode, wipe out any module arguments.
invocation = res.get('invocation', None)
if isinstance(invocation, dict) and self.job_verbosity == 0 and 'module_args' in invocation:
event_data['res']['invocation']['module_args'] = ''
self.event_data = event_data
updated_fields.add('event_data')
if self.event == 'playbook_on_stats':
try:
failures_dict = event_data.get('failures', {})