diff --git a/lib/ansible/modules/packaging/os/package_facts.py b/lib/ansible/modules/packaging/os/package_facts.py index 90aa208732..5175642bc1 100644 --- a/lib/ansible/modules/packaging/os/package_facts.py +++ b/lib/ansible/modules/packaging/os/package_facts.py @@ -177,6 +177,10 @@ class APT(LibMgr): LIB = 'apt' + def __init__(self): + self._cache = None + super(APT, self).__init__() + @property def pkg_cache(self): if self._cache: