1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Template the name of the task

Broken by 1e0295c. Fixes #1698.
This commit is contained in:
Daniel Hokka Zakrisson 2012-11-28 00:36:10 +01:00
parent 24dadb3c27
commit c948c65bcd

View file

@ -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)