Metadata-Version: 2.5
Name: trytond_ansible_inventory
Version: 8.0.0.1
Summary: Ansible Inventory Module
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@backend.at>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: ansible,automation,inventory,tryton
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.10
Requires-Dist: trytond-ansible<8.1,>=8.0
Requires-Dist: trytond-party<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

Ansible Inventory
=================

The ``ansible_inventory`` module provides Ansible inventory management
with host and group variables and inheritance resolution.

Features
--------

- **Group Hierarchy**: Groups can be nested via a parent-child
  relationship.  Variables defined on parent groups are inherited by
  child groups.
- **Host Variables**: Hosts can belong to multiple groups and have
  their own variables that override group-level values.
- **Variable Inheritance**: The ``get_resolved_variables`` method on
  both hosts and groups resolves the full variable hierarchy:
  parent group → child group → host.
- **YAML Preview**: A read-only ``variables_preview`` field shows the
  resolved variables as YAML directly in the form view.
- **Typed Variables**: Each variable has a type (string, integer,
  float, boolean, JSON, YAML) that controls how the raw value is
  interpreted during resolution.

Configuration
-------------

After installing the module, navigate to *Ansible > Inventory* to
manage groups and hosts.

Dependencies
------------

- Tryton modules: ``ir``, ``res``, ``ansible``.

Models
------

- ``ansible.inventory.group`` — ``Group``: an inventory group with
  parent-child hierarchy and key-value variables.
- ``ansible.inventory.group.variable`` — ``GroupVariable``: a
  key-value pair attached to a group.
- ``ansible.inventory.host`` — ``Host``: an inventory host belonging
  to multiple groups with its own variables.
- ``ansible.inventory.host.variable`` — ``HostVariable``: a
  key-value pair attached to a host.
- ``ansible.inventory.host.group`` — ``HostGroupRelation``: the
  many-to-many relation table between hosts and groups.

Cron Jobs
---------

None.

Wizards
-------

None.
