Execution
Date
23 May 2025 11:11:44 +0100
Duration
00:00:01.23
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.11
ara
1.7.2 / 1.7.2
Python
3.10.10
Summary
1
Hosts
3
Tasks
3
Results
1
Plays
1
Files
0
Records
Task result details
-
Date23 May 2025 11:11:45 +0100
-
Module / Actionansible.builtin.set_fact (/home/ssh-gateway/ansible/kuly/generate_inventory_from_files.yml:20)
| Field | Value |
|---|---|
| msg |
template error while templating string: Encountered unknown tag 'data'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.. String: {%
set data = {'ungrouped': []}
%} {%
for item in ini_files.files
%}
{%
set filename = item.path | basename
%}
{%
set hostname = (filename | regex_replace('-panel.ini$', ''))
%}
{%
data['ungrouped'].append(hostname)
%}
{%
endfor
%} {{
data
}}. Encountered unknown tag 'data'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.
|