diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index ec8d944f3cf..fe4a3711ce7 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -282,7 +282,7 @@ class PlayBook(object): def _run_task(self, play, task, is_handler): ''' run a single task in the playbook and recursively run any subtasks. ''' - self.callbacks.on_task_start(task.name, is_handler) + self.callbacks.on_task_start(utils.template(play.basedir, task.name, task.module_vars), is_handler) # load up an appropriate ansible runner to run the task in parallel results = self._run_task_internal(task)