Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
29bc8f51
Commit
29bc8f51
authored
Jul 30, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made tags display closer to v1
parent
e2e0dc27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/cli/playbook.py
+2
-2
No files found.
lib/ansible/cli/playbook.py
View file @
29bc8f51
...
@@ -162,7 +162,7 @@ class PlaybookCLI(CLI):
...
@@ -162,7 +162,7 @@ class PlaybookCLI(CLI):
mytags
=
set
()
mytags
=
set
()
if
self
.
options
.
listtags
and
play
.
tags
:
if
self
.
options
.
listtags
and
play
.
tags
:
mytags
=
mytags
.
union
(
set
(
play
.
tags
))
mytags
=
mytags
.
union
(
set
(
play
.
tags
))
msg
+=
'
\n
tags
: [
%
s]'
%
(
','
.
join
(
mytags
))
msg
+=
'
TAGS
: [
%
s]'
%
(
','
.
join
(
mytags
))
if
self
.
options
.
listhosts
:
if
self
.
options
.
listhosts
:
playhosts
=
set
(
inventory
.
get_hosts
(
play
.
hosts
))
playhosts
=
set
(
inventory
.
get_hosts
(
play
.
hosts
))
...
@@ -183,7 +183,7 @@ class PlaybookCLI(CLI):
...
@@ -183,7 +183,7 @@ class PlaybookCLI(CLI):
for
task
in
block
.
block
:
for
task
in
block
.
block
:
taskmsg
+=
"
\n
%
s"
%
task
taskmsg
+=
"
\n
%
s"
%
task
if
self
.
options
.
listtags
and
task
.
tags
:
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
j
=
j
+
1
self
.
display
.
display
(
taskmsg
)
self
.
display
.
display
(
taskmsg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment