automation-inventory-parameter

Status: IN

The `inventory` parameter on `automation()` loads a YAML inventory file for host/group definitions, used alongside `add_host()` for hybrid static+dynamic inventory.

Source: repo:ftl2-servercraft/ftl2_servercraft/__init__.py

Example

async with automation(
    inventory=str(config.inventory_path),
    state_file=str(config.state_path),
) as ftl:
    # Hosts from inventory.yml are pre-loaded
    # Dynamic hosts can still be added with ftl.add_host()

JSON