diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index c592824a057..6a4fe42543a 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -287,7 +287,7 @@ class StrategyModule(StrategyBase): loop_var = 'item' if hr._task.loop_control: loop_var = hr._task.loop_control.loop_var or 'item' - include_results = hr._result['results'] + include_results = hr._result.get('results', []) else: include_results = [ hr._result ]