|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/lib/python3.9/site-packages/ansible/plugins/inventory/__pycache__/ |
a
�)g� � @ sX d dl mZmZmZ eZdZdZd dlm Z d dl
mZ d dlm
Z
G dd� de�Zd S )
� )�absolute_import�division�print_functiona[
name: auto
author:
- Matt Davis (@nitzmahone)
version_added: "2.5"
short_description: Loads and executes an inventory plugin specified in a YAML config
description:
- By enabling the C(auto) inventory plugin, any YAML inventory config file with a
C(plugin) key at its root will automatically cause the named plugin to be loaded and executed with that
config. This effectively provides automatic enabling of all installed/accessible inventory plugins.
- To disable this behavior, remove C(auto) from the C(INVENTORY_ENABLED) config element.
z�
# This plugin is not intended for direct use; it is a fallback mechanism for automatic enabling of
# all installed inventory plugins.
)�AnsibleParserError)�BaseInventoryPlugin)�inventory_loaderc s* e Zd ZdZ� fdd�Zddd�Z� ZS )�InventoryModule�autoc s( |� d�s|� d�sdS tt| ��|�S )Nz.ymlz.yamlF)�endswith�superr �verify_file)�self�path�� __class__� �B/usr/lib/python3.9/site-packages/ansible/plugins/inventory/auto.pyr "