fix for check_mode/async interaction
fixes #18110
(cherry picked from commit 432633e4c1
)
This commit is contained in:
parent
f15ec38788
commit
25e4398d5b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue