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
aad128ba
Commit
aad128ba
authored
Apr 15, 2014
by
James Tanner
Committed by
James Cammarata
Apr 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use combined cache for templating module vars
Fixes #6901
parent
942c3299
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib/ansible/runner/__init__.py
+4
-2
lib/ansible/runner/__init__.py.orig
+0
-0
No files found.
lib/ansible/runner/__init__.py
View file @
aad128ba
...
@@ -552,12 +552,14 @@ class Runner(object):
...
@@ -552,12 +552,14 @@ class Runner(object):
# fireball, local, etc
# fireball, local, etc
port
=
self
.
remote_port
port
=
self
.
remote_port
module_vars
=
template
.
template
(
self
.
basedir
,
self
.
module_vars
,
host_variables
)
# merge the VARS and SETUP caches for this host
# merge the VARS and SETUP caches for this host
combined_cache
=
self
.
setup_cache
.
copy
()
combined_cache
=
self
.
setup_cache
.
copy
()
combined_cache
.
get
(
host
,
{})
.
update
(
self
.
vars_cache
.
get
(
host
,
{}))
combined_cache
.
get
(
host
,
{})
.
update
(
self
.
vars_cache
.
get
(
host
,
{}))
# use combined_cache and host_variables to template the module_vars
module_vars_inject
=
utils
.
combine_vars
(
combined_cache
.
get
(
host
,
{}),
host_variables
)
module_vars
=
template
.
template
(
self
.
basedir
,
self
.
module_vars
,
module_vars_inject
)
inject
=
{}
inject
=
{}
inject
=
utils
.
combine_vars
(
inject
,
self
.
default_vars
)
inject
=
utils
.
combine_vars
(
inject
,
self
.
default_vars
)
inject
=
utils
.
combine_vars
(
inject
,
host_variables
)
inject
=
utils
.
combine_vars
(
inject
,
host_variables
)
...
...
lib/ansible/runner/__init__.py.orig
0 → 100644
View file @
aad128ba
This diff is collapsed.
Click to expand it.
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