diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 5e0f34599a..a93a76c250 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -463,7 +463,7 @@ class TaskExecutor: # if this task is a IncludeRole, we just return now with a success code so the main thread can expand the task list for the given host elif self._task.action == 'include_role': include_variables = self._task.args.copy() - return dict(include_role=self._task, include_variables=include_variables) + return dict(include_variables=include_variables) # Now we do final validation on the task, which sets all fields to their final values. self._task.post_validate(templar=templar)