Display correct task title with strategy 'free' (fixes #43950)
This commit is contained in:
parent
0392dbeba1
commit
c1f41ee607
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,11 @@ class CallbackModule(CallbackBase):
|
||||||
def v2_playbook_on_task_start(self, task, is_conditional):
|
def v2_playbook_on_task_start(self, task, is_conditional):
|
||||||
# Preserve task name, as all vars may not be available for templating
|
# Preserve task name, as all vars may not be available for templating
|
||||||
# when we need it later
|
# when we need it later
|
||||||
if self._play.strategy != 'free':
|
if self._play.strategy == 'free':
|
||||||
|
# Explicitly set to None for strategy 'free' to account for any cached
|
||||||
|
# task title from a previous non-free play
|
||||||
|
self._last_task_name = None
|
||||||
|
else:
|
||||||
self._last_task_name = task.get_name().strip()
|
self._last_task_name = task.get_name().strip()
|
||||||
|
|
||||||
# Display the task banner immediately if we're not doing any filtering based on task result
|
# Display the task banner immediately if we're not doing any filtering based on task result
|
||||||
|
|
Loading…
Reference in a new issue