From 975172c1efe5dacc6e9b44f66895ae991e1631a2 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 22 Jul 2015 07:28:25 -0400 Subject: [PATCH] Make sure role name doesn't end up in task name more than once Fixes #11691 --- lib/ansible/playbook/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index ca163ca7e55..32f47b602a4 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -97,7 +97,7 @@ class Task(Base, Conditional, Taggable, Become): def get_name(self): ''' return the name of the task ''' - if self._role and self.name: + if self._role and self.name and not self.name.startswith("%s :" % self._role.get_name()): return "%s : %s" % (self._role.get_name(), self.name) elif self.name: return self.name