diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 9526ecb2d72..e3d69d10398 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -92,7 +92,7 @@ class HostVars(dict): def __getitem__(self, host): if host not in self.lookup: - result = self.inventory.get_variables(host, vault_password=self.vault_password) + result = self.inventory.get_variables(host, vault_password=self.vault_password).copy() result.update(self.vars_cache.get(host, {})) self.lookup[host] = result return self.lookup[host]