add-host-groups-parameter

Status: IN

`ftl.add_host()` accepts a `groups` parameter to assign the dynamically registered host to inventory groups.

Source: entries/2026/05/11/examples-08-gcp-automation-example_gcp_provision.md

Example

# From ftl2-servercraft/scripts/neoforge.py — group enables ftl.minecraft accessor
ftl.add_host(
    hostname=config.name,
    ansible_host=ip,
    ansible_user="root",
    groups=["minecraft"],
    disable_host_key_checking=True,
)
# Now accessible as: await ftl.minecraft.shell(cmd="...")

JSON