Add IncludeRole.get_name to provide better name for include_role. Fixes #36343 (#39807)

This commit is contained in:
Matt Martz 2018-05-07 15:27:09 -05:00 committed by GitHub
parent ea7883ef7e
commit 72ebd1bf46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,10 @@ class IncludeRole(TaskInclude):
self._role_name = None self._role_name = None
self._role_path = None self._role_path = None
def get_name(self):
''' return the name of the task '''
return "%s : %s" % (self.action, self._role_name)
def get_block_list(self, play=None, variable_manager=None, loader=None): def get_block_list(self, play=None, variable_manager=None, loader=None):
# only need play passed in when dynamic # only need play passed in when dynamic