Prefer name of include_role. Fixes #43332

This commit is contained in:
Matt Martz 2018-07-31 11:39:59 -05:00 committed by Brian Coca
parent d5bec06150
commit dc908f4cb5

View file

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