diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py index 491b99a8046..658f0250d7c 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -390,7 +390,7 @@ class VariableManager: assert isinstance(facts, dict) - if host.name not in self._fact_cache: + if host.name not in self._nonpersistent_fact_cache: self._nonpersistent_fact_cache[host.name] = facts else: try: