1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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_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):
# only need play passed in when dynamic