mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Inventory plugins move auto before ini (#44428)
* inventory plugins: try auto before ini auto plugin should run before ini to avoid ini being able to parse some plugin configuration YAML files successfully. * Update comment comment was added by2ffe3c42bbbut related code was later removed by506e6a0b2d.
This commit is contained in:
@@ -1442,7 +1442,7 @@ INVENTORY_CACHE_TIMEOUT:
|
||||
- {key: cache_timeout, section: inventory}
|
||||
INVENTORY_ENABLED:
|
||||
name: Active Inventory plugins
|
||||
default: ['host_list', 'script', 'yaml', 'ini', 'toml', 'auto']
|
||||
default: ['host_list', 'script', 'auto', 'yaml', 'ini', 'toml']
|
||||
description: List of enabled inventory plugins, it also determines the order in which they are used.
|
||||
env: [{name: ANSIBLE_INVENTORY_ENABLED}]
|
||||
ini:
|
||||
|
||||
@@ -263,7 +263,7 @@ class InventoryManager(object):
|
||||
|
||||
if plugin_wants:
|
||||
try:
|
||||
# in case plugin fails 1/2 way we dont want partial inventory
|
||||
# FIXME in case plugin fails 1/2 way we have partial inventory
|
||||
plugin.parse(self._inventory, self._loader, source, cache=cache)
|
||||
parsed = True
|
||||
display.vvv('Parsed %s inventory source with %s plugin' % (source, plugin_name))
|
||||
|
||||
Reference in New Issue
Block a user