{"id":"add-host-groups-parameter","text":"`ftl.add_host()` accepts a `groups` parameter to assign the dynamically registered host to inventory groups.","truth_value":"IN","source":"entries/2026/05/11/examples-08-gcp-automation-example_gcp_provision.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"# From ftl2-servercraft/scripts/neoforge.py — group enables ftl.minecraft accessor\nftl.add_host(\n    hostname=config.name,\n    ansible_host=ip,\n    ansible_user=\"root\",\n    groups=[\"minecraft\"],\n    disable_host_key_checking=True,\n)\n# Now accessible as: await ftl.minecraft.shell(cmd=\"...\")"},"explanation":{"steps":[{"node":"add-host-groups-parameter","truth_value":"IN","reason":"premise"}]}}