mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
committed by
James Cammarata
parent
942c3299ec
commit
aad128bac7
@@ -552,12 +552,14 @@ class Runner(object):
|
||||
# fireball, local, etc
|
||||
port = self.remote_port
|
||||
|
||||
module_vars = template.template(self.basedir, self.module_vars, host_variables)
|
||||
|
||||
# merge the VARS and SETUP caches for this host
|
||||
combined_cache = self.setup_cache.copy()
|
||||
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 = utils.combine_vars(inject, self.default_vars)
|
||||
inject = utils.combine_vars(inject, host_variables)
|
||||
|
||||
1224
lib/ansible/runner/__init__.py.orig
Normal file
1224
lib/ansible/runner/__init__.py.orig
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user