{"id":"ansible-to-ftl2-conversion-mappings","text":"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.","truth_value":"IN","source":"entries/2026/05/11/roadmap.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"# Ansible playbook:\n#   - name: Install packages\n#     apt: name={{ item }} state=present\n#     with_items: [nginx, curl]\n#     when: ansible_os_family == \"Debian\"\n#\n# FTL2 equivalent:\nasync with automation(inventory=\"hosts.yml\") as ftl:\n    if ftl.vars.ansible_os_family == \"Debian\":\n        for pkg in [\"nginx\", \"curl\"]:\n            await ftl.apt(name=pkg, state=\"present\")"},"explanation":{"steps":[{"node":"ansible-to-ftl2-conversion-mappings","truth_value":"IN","reason":"premise"}]}}