with extra debugging:
The full traceback is:
Traceback (most recent call last):
File "/Users/dick.visser/foo/venv/lib/python3.11/site-packages/ansible/template/__init__.py", line 1160, in do_template
res = j2_concat(rf)
^^^^^^^^^^^^^
File "<template>", line 764, in root
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dick.visser/foo/venv/lib/python3.11/site-packages/ansible/plugins/action/template.py", line 150, in run
resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dick.visser/foo/venv/lib/python3.11/site-packages/ansible/template/__init__.py", line 1171, in do_template
raise AnsibleError("Unexpected templating type error occurred on (%s): %s" % (to_native(data), to_native(te)))
ansible.errors.AnsibleError: Unexpected templating type error occurred on (
<huge template content>
I guessed that "line 764" would be the location in the template, but at that place nothing seems relevant....