diff --git a/CHANGELOG.md b/CHANGELOG.md index 085c61d3a42..a46fae9ada6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -87,6 +87,7 @@ Ansible Changes By Release * Fix for become on Windows to handle ignored errors (https://github.com/ansible/ansible/issues/30468) * Fix removal of newlines when writing SELinux config (https://github.com/ansible/ansible/issues/30618) * clarified extension requirement for constructed inv plugin +* really turn off inventory caching, toggle will be added in 2.5 diff --git a/lib/ansible/inventory/manager.py b/lib/ansible/inventory/manager.py index a3c02277c5b..c2cfb845c26 100644 --- a/lib/ansible/inventory/manager.py +++ b/lib/ansible/inventory/manager.py @@ -190,7 +190,7 @@ class InventoryManager(object): if not self._inventory_plugins: raise AnsibleError("No inventory plugins available to generate inventory, make sure you have at least one whitelisted.") - def parse_sources(self, cache=True): + def parse_sources(self, cache=False): ''' iterate over inventory sources and parse each one to populate it''' self._setup_inventory_plugins() @@ -214,7 +214,7 @@ class InventoryManager(object): self._inventory_plugins = [] - def parse_source(self, source, cache=True): + def parse_source(self, source, cache=False): ''' Generate or update inventory for the source provided ''' parsed = False