diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 7adafa0a9a..d4835d9850 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -501,7 +501,7 @@ class TaskExecutor: vars_copy[self._task.register] = wrap_var(result.copy()) if self._task.async > 0: - if self._task.poll > 0: + if self._task.poll > 0 and not result.get('skipped'): result = self._poll_async_result(result=result, templar=templar, task_vars=vars_copy) # ensure no log is preserved