preserve no_log for async also
This commit is contained in:
parent
d74ea51287
commit
34541b4e5e
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue