mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
made tags display closer to v1
This commit is contained in:
@@ -162,7 +162,7 @@ class PlaybookCLI(CLI):
|
||||
mytags = set()
|
||||
if self.options.listtags and play.tags:
|
||||
mytags = mytags.union(set(play.tags))
|
||||
msg += '\n tags: [%s]' % (','.join(mytags))
|
||||
msg += ' TAGS: [%s]' % (','.join(mytags))
|
||||
|
||||
if self.options.listhosts:
|
||||
playhosts = set(inventory.get_hosts(play.hosts))
|
||||
@@ -183,7 +183,7 @@ class PlaybookCLI(CLI):
|
||||
for task in block.block:
|
||||
taskmsg += "\n %s" % task
|
||||
if self.options.listtags and task.tags:
|
||||
taskmsg += "\n tags: [%s]" % ','.join(mytags.union(set(task.tags)))
|
||||
taskmsg += " TAGS: [%s]" % ','.join(mytags.union(set(task.tags)))
|
||||
j = j + 1
|
||||
|
||||
self.display.display(taskmsg)
|
||||
|
||||
Reference in New Issue
Block a user