turn all inventory cache 'off by default'

(cherry picked from commit 852d457549)
pull/31343/head
Brian Coca 8 years ago
parent 833858dc31
commit 8b39280d8d

@ -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
<a id="2.4"></a>

@ -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

Loading…
Cancel
Save