{"id":270053,"status":"failed","playbook":{"id":2996,"items":{"plays":1,"tasks":3,"results":3,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/hosts"],"listhosts":false,"subset":null,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["generate_inventory_from_files.yml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2025-05-23T11:10:15.322328+01:00","ended":"2025-05-23T11:10:16.561437+01:00","duration":"00:00:01.239109","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"failed","path":"/home/ssh-gateway/ansible/kuly/generate_inventory_from_files.yml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":3317,"items":{"tasks":3,"results":3},"started":"2025-05-23T11:10:15.359156+01:00","ended":"2025-05-23T11:10:16.463503+01:00","duration":"00:00:01.104347","name":"Generate Ansible inventory from fetched ini files","status":"completed"},"task":{"id":6998,"items":{"results":1},"path":"/home/ssh-gateway/ansible/kuly/generate_inventory_from_files.yml","tags":[],"started":"2025-05-23T11:10:16.293660+01:00","ended":"2025-05-23T11:10:16.415492+01:00","duration":"00:00:00.121832","name":"Extract hostnames from filenames and build inventory groups","uuid":"001851d0-75dc-803c-a640-000000000063","action":"ansible.builtin.set_fact","lineno":20,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":5102},"host":{"id":113361,"name":"localhost","changed":0,"failed":1,"ok":2,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"msg":"template error while templating string: Encountered unknown tag 'do'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.. String: {% set data = {} %}\n{% for item in ini_files.files %}\n  {% set filename = item.path | basename %}\n  {% set hostname = filename | regex_replace('-panel.ini$', '') %}\n  {% if 'ungrouped' not in data %}{% do data.update({'ungrouped': []}) %}{% endif %}\n  {% do data['ungrouped'].append(hostname) %}\n{% endfor %}\n{{ data }}\n. Encountered unknown tag 'do'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'."},"created":"2025-05-23T11:10:16.405512+01:00","updated":"2025-05-23T11:10:16.405538+01:00","started":"2025-05-23T11:10:16.342574+01:00","ended":"2025-05-23T11:10:16.402658+01:00","duration":"00:00:00.060084","changed":false,"ignore_errors":false}