default-state-file-is-ftl2-state-json

Status: IN

The default state file path is `.ftl2-state.json`; it enables crash recovery by persisting dynamically added hosts.

Source: entries/2026/05/11/api-automation-init.md

Example

async with automation(state_file=".ftl2-state.json") as ftl:
    ftl.add_host(hostname="web01", ansible_host="10.0.1.5")
    # Host persisted to state file; survives crash and re-run

JSON