From 29bc8f51d7137b29d55d0b0fe6ae783ad6641f97 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 30 Jul 2015 12:00:18 -0400 Subject: [PATCH] made tags display closer to v1 --- lib/ansible/cli/playbook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/cli/playbook.py b/lib/ansible/cli/playbook.py index 9a2a9a0ad72..627e41057ca 100644 --- a/lib/ansible/cli/playbook.py +++ b/lib/ansible/cli/playbook.py @@ -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)