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
4e08064a
Commit
4e08064a
authored
May 01, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue where included blocks were not filtered on tags (v2)
parent
1c250ee4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
v2/ansible/playbook/taggable.py
+1
-1
v2/ansible/plugins/strategies/linear.py
+3
-1
v2/samples/hosts
+1
-0
v2/samples/include.yml
+2
-0
No files found.
v2/ansible/playbook/taggable.py
View file @
4e08064a
...
...
@@ -26,7 +26,7 @@ from ansible.template import Templar
class
Taggable
:
untagged
=
set
([
'untagged'
])
_tags
=
FieldAttribute
(
isa
=
'list'
,
default
=
None
)
_tags
=
FieldAttribute
(
isa
=
'list'
,
default
=
[]
)
def
__init__
(
self
):
super
(
Taggable
,
self
)
.
__init__
()
...
...
v2/ansible/plugins/strategies/linear.py
View file @
4e08064a
...
...
@@ -285,7 +285,9 @@ class StrategyModule(StrategyBase):
noop_block
.
rescue
=
[
noop_task
for
t
in
new_block
.
rescue
]
for
host
in
hosts_left
:
if
host
in
included_file
.
_hosts
:
all_blocks
[
host
]
.
append
(
new_block
)
task_vars
=
self
.
_variable_manager
.
get_vars
(
loader
=
self
.
_loader
,
play
=
iterator
.
_play
,
host
=
host
,
task
=
included_file
.
_task
)
final_block
=
new_block
.
filter_tagged_tasks
(
connection_info
,
task_vars
)
all_blocks
[
host
]
.
append
(
final_block
)
else
:
all_blocks
[
host
]
.
append
(
noop_block
)
...
...
v2/samples/hosts
0 → 100644
View file @
4e08064a
testing ansible_connection=local ansible_ssh_host=192.168.122.100 ansible_ssh_user=testing
v2/samples/include.yml
View file @
4e08064a
-
debug
:
msg="this is the include, a=={{a}}"
tags
:
-
included
#- debug: msg="this is the second debug in the include"
#- debug: msg="this is the third debug in the include, and a is still {{a}}"
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