catbeez-publish-games-requires-existing-state-file

Status: IN

The publish-games script reads an existing state file to extract host connection info — the state file must already exist from a prior provisioning run.

Source: entries/2026/05/11/deployments-catbeez-publish-games.md

Example

# From catbeez-arcade/publish-games.py — reads host IP from prior deploy state
async with automation(state_file=cfg["state_file"]) as ftl:
    with open(cfg["state_file"]) as f:
        state = json.load(f)
    host_info = state["hosts"][cfg["hostname"]]
    ftl.add_host(hostname=cfg["hostname"], ansible_host=host_info["ansible_host"],
                 ansible_user="admin", ansible_become=True)

JSON