mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fixing new caching related issue with host vars
The vars_cache was not being properly merged with the setup_cache for all hosts, which was previously not noticed when registered variables were stored in the setup_cache. Fixes #8944
This commit is contained in:
@@ -598,7 +598,7 @@ class Runner(object):
|
||||
|
||||
# merge the VARS and SETUP caches for this host
|
||||
combined_cache = self.setup_cache.copy()
|
||||
combined_cache.setdefault(host, {}).update(self.vars_cache.get(host, {}))
|
||||
combined_cache.update(self.vars_cache)
|
||||
|
||||
hostvars = HostVars(combined_cache, self.inventory, vault_password=self.vault_pass)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user