diff --git a/lib/ansible/playbook/role_include.py b/lib/ansible/playbook/role_include.py index 37fc0ad683..bef6ca65a3 100644 --- a/lib/ansible/playbook/role_include.py +++ b/lib/ansible/playbook/role_include.py @@ -68,7 +68,7 @@ class IncludeRole(TaskInclude): def get_name(self): ''' return the name of the task ''' - return "%s : %s" % (self.action, self._role_name) + return self.name or "%s : %s" % (self.action, self._role_name) def get_block_list(self, play=None, variable_manager=None, loader=None):