Date: 2026-05-11
Time: 15:20
This page tracks the implementation status of FTL2's example automation scripts, covering local execution, remote SSH, and multi-host scenarios. It documents which modules have been created, resolved issues (particularly around SSH authentication), and the current test status of each example set.
src/ftl2/modules/ansible prefix. Use sshprivatekeyfile instead of ansiblesshprivatekeyfile. Only fields starting with ansible_ are treated as direct host attributes; other variables go into a vars dict.shlex for proper shell-style argument parsing, handling quoted strings like cmd='echo hello'.
# Local execution
cd examples/01-local-execution
./run_examples.sh
# Remote SSH with container setup
cd examples/02-remote-ssh
./setup.sh start # Starts container & installs Python
./run_examples.sh # Run examples
./setup.sh stop # Clean up
# SSH integration tests (requires running test container)
SSH_INTEGRATION_TESTS=true pytest tests/test_ssh_integration.py -xvs
Inventory structure uses groups like webservers and databases defined in inventory.yml, with SSH key paths configured per-host.
ansible_ prefix)ansible_ prefix difference is a key gotcha for migrating usersansible prefix; use sshprivatekeyfile not ansiblesshprivatekeyfileansible_ prefixed variables are placed in the vars dict within inventorySSHINTEGRATIONTESTS=true environment variable gates SSH integration testsshlex parsing