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
04a6dc6d
Commit
04a6dc6d
authored
Mar 08, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for skipped tags in passed role variables before adding to them
Fixes #6330
parent
c79b5ea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/ansible/playbook/play.py
+7
-7
No files found.
lib/ansible/playbook/play.py
View file @
04a6dc6d
...
...
@@ -227,6 +227,13 @@ class Play(object):
if
meta_data
:
allow_dupes
=
utils
.
boolean
(
meta_data
.
get
(
'allow_duplicates'
,
''
))
if
"tags"
in
passed_vars
:
if
not
self
.
_is_valid_tag
(
passed_vars
[
"tags"
]):
# one of the tags specified for this role was in the
# skip list, or we're limiting the tags and it didn't
# match one, so we just skip it completely
continue
# if any tags were specified as role/dep variables, merge
# them into the passed_vars so they're passed on to any
# further dependencies too, and so we only have one place
...
...
@@ -268,13 +275,6 @@ class Play(object):
if
'role'
in
dep_vars
:
del
dep_vars
[
'role'
]
if
"tags"
in
passed_vars
:
if
not
self
.
_is_valid_tag
(
passed_vars
[
"tags"
]):
# one of the tags specified for this role was in the
# skip list, or we're limiting the tags and it didn't
# match one, so we just skip it completely
continue
if
not
allow_dupes
:
if
dep
in
self
.
included_roles
:
# skip back to the top, since we don't want to
...
...
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