mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
942c3299ec
commit
aad128bac7
2 changed files with 1228 additions and 2 deletions
|
@ -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
Loading…
Reference in a new issue