fix for check_mode/async interaction

fixes #18110
pull/18056/head
Brian Coca 8 years ago committed by Brian Coca
parent 1d3db8ec5b
commit 432633e4c1

@ -501,7 +501,7 @@ class TaskExecutor:
vars_copy[self._task.register] = wrap_var(result.copy()) vars_copy[self._task.register] = wrap_var(result.copy())
if self._task.async > 0: 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) result = self._poll_async_result(result=result, templar=templar, task_vars=vars_copy)
# ensure no log is preserved # ensure no log is preserved

Loading…
Cancel
Save