From 34541b4e5e2bef09f3fab2d008481eb8b2efbece Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 23 Feb 2016 15:37:21 -0500 Subject: [PATCH] preserve no_log for async also --- lib/ansible/executor/task_executor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 162c70a2851..d9cb7170b33 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -441,6 +441,9 @@ class TaskExecutor: if self._task.poll > 0: result = self._poll_async_result(result=result, templar=templar) + # ensure no log is preserved + result["_ansible_no_log"] = self._play_context.no_log + # helper methods for use below in evaluating changed/failed_when def _evaluate_changed_when_result(result): if self._task.changed_when is not None: