diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 8a50f9e02d5..16713dfa9ac 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -598,7 +598,7 @@ class Runner(object): # merge the VARS and SETUP caches for this host combined_cache = self.setup_cache.copy() - combined_cache.update(self.vars_cache) + combined_cache = utils.merge_hash(combined_cache, self.vars_cache) hostvars = HostVars(combined_cache, self.inventory, vault_password=self.vault_pass)