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
6579c5dd
Commit
6579c5dd
authored
Feb 08, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed skipped tags
parent
95fa770b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
lib/ansible/playbook/__init__.py
+21
-17
No files found.
lib/ansible/playbook/__init__.py
View file @
6579c5dd
...
...
@@ -736,7 +736,6 @@ class PlayBook(object):
continue
# only run the task if the requested tags match or has 'always' tag
should_run
=
False
if
'always'
in
task
.
tags
:
should_run
=
True
else
:
...
...
@@ -745,27 +744,32 @@ class PlayBook(object):
if
'all'
in
self
.
only_tags
:
should_run
=
True
elif
'tagged'
in
self
.
only_tags
:
if
task_set
!=
u
:
should_run
=
True
elif
'untagged'
in
self
.
only_tags
:
if
task_set
==
u
:
should_run
=
True
else
:
if
len
(
set
(
task
.
tags
)
.
intersection
(
self
.
only_tags
))
>
0
:
should_run
=
True
should_run
=
False
if
'tagged'
in
self
.
only_tags
:
if
task_set
!=
u
:
should_run
=
True
elif
'untagged'
in
self
.
only_tags
:
if
task_set
==
u
:
should_run
=
True
else
:
if
len
(
task_set
.
intersection
(
self
.
only_tags
))
>
0
:
should_run
=
True
# Check for tags that we need to skip
if
'tagged'
in
self
.
skip_tags
:
if
task_set
==
u
:
should_run
=
False
elif
'untagged'
in
self
.
only_tags
:
if
task_set
!=
u
:
should_run
=
False
if
'all'
in
self
.
skip_tags
:
should_run
=
False
else
:
if
should_run
:
if
len
(
set
(
task
.
tags
)
.
intersection
(
self
.
skip_tags
))
>
0
:
if
'tagged'
in
self
.
skip_tags
:
if
task_set
!=
u
:
should_run
=
False
elif
'untagged'
in
self
.
skip_tags
:
if
task_set
==
u
:
should_run
=
False
else
:
if
should_run
:
if
len
(
task_set
.
intersection
(
self
.
skip_tags
))
>
0
:
should_run
=
False
if
should_run
:
...
...
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