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

pull/39823/head
Matt Martz 7 years ago committed by GitHub
parent ea7883ef7e
commit 72ebd1bf46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save