mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Enable autoloading of inventory plugins (#32709)
* Automatically loads and executes an inventory plugin specified by a standard YAML inventory config file containing a `plugin` key at its root. * Moved inventory PluginLoader to a shared global instance.
This commit is contained in:
@@ -582,3 +582,10 @@ netconf_loader = PluginLoader(
|
||||
'netconf_plugins',
|
||||
required_base_class='NetconfBase'
|
||||
)
|
||||
|
||||
inventory_loader = PluginLoader(
|
||||
'InventoryModule',
|
||||
'ansible.plugins.inventory',
|
||||
C.DEFAULT_INVENTORY_PLUGIN_PATH,
|
||||
'inventory_plugins'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user