servercraft-gate-modules-on-launch

Status: IN

The `launch` and `reconfigure` commands use `gate_modules="auto"` with `gate_dependencies=["httpx"]` to pre-build modules for remote execution performance.

Source: entries/2026/05/11/servercraft-init.md

Example

# From ftl2-servercraft/__init__.py
async with automation(
    secret_bindings={
        "community.general.linode_v4": {
            "access_token": "LINODE_TOKEN",
            "root_pass": "LINODE_ROOT_PASS",
        },
        "community.general.slack": {"token": "SLACK_TOKEN"},
    },
    inventory=str(config.inventory_path),
    state_file=str(config.state_path),
    fail_fast=True,
    auto_install_deps=True,
    gate_modules="auto",
    gate_dependencies=["httpx"],
) as ftl:
    await script.provision(ftl, config, log)

JSON