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
ca4c5a14
Commit
ca4c5a14
authored
Mar 04, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bug related to dynamic includes + with* loops
parent
d0cfcdbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
v2/ansible/plugins/strategies/linear.py
+3
-0
v2/samples/test_include.yml
+2
-2
No files found.
v2/ansible/plugins/strategies/linear.py
View file @
ca4c5a14
...
...
@@ -209,6 +209,7 @@ class StrategyModule(StrategyBase):
results
=
self
.
_wait_on_pending_results
(
iterator
)
host_results
.
extend
(
results
)
# FIXME: this needs to be somewhere else
class
IncludedFile
:
def
__init__
(
self
,
filename
,
args
,
task
):
self
.
_filename
=
filename
...
...
@@ -239,6 +240,8 @@ class StrategyModule(StrategyBase):
include_file
=
self
.
_loader
.
path_dwim
(
res
.
_task
.
args
.
get
(
'_raw_params'
))
include_variables
=
include_result
.
get
(
'include_variables'
,
dict
())
if
'item'
in
include_result
:
include_variables
[
'item'
]
=
include_result
[
'item'
]
inc_file
=
IncludedFile
(
include_file
,
include_variables
,
original_task
)
...
...
v2/samples/test_include.yml
View file @
ca4c5a14
...
...
@@ -20,6 +20,6 @@
-
include
:
include.yml a=always
handlers
:
-
name
:
foo
include
:
include.yml a="this is a handler"
#
- name: foo
#
include: include.yml a="this is a handler"
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