Status: IN
The Ansible-to-FTL2 converter maps: `with_items` to `for` loops, `when` to `if` statements, `handlers` to explicit service restarts, `roles` to function calls, `hosts` to group proxies, `vars` to Python variables.
Source: entries/2026/05/11/roadmap.md
# Ansible playbook:
# - name: Install packages
# apt: name={{ item }} state=present
# with_items: [nginx, curl]
# when: ansible_os_family == "Debian"
#
# FTL2 equivalent:
async with automation(inventory="hosts.yml") as ftl:
if ftl.vars.ansible_os_family == "Debian":
for pkg in ["nginx", "curl"]:
await ftl.apt(name=pkg, state="present")