Hey Maciej,
Am 05.07.19 um 11:41 schrieb Maciej Delmanowski:
On Jul 05, Fabian Reiners wrote:
>> This is a common occurence with Jinja version lower than 2.10. Check which one
>> you have and upgrade it to at least 2.10, that should fix the issue. Let me
>> know if that helped.
>
> I already checked. Installed versions:
>
> ansible==2.8.0
> Jinja2==2.10
> python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
Then it's probably due to issues with Jinja and import statements in loops,
ref:
https://github.com/pallets/jinja/issues/659. I fixed this in debops.nginx
by removing the import statement from the 'index.html' template:
https://github.com/debops/debops/pull/223. This would also have to be done
with debops.apache role. Any chance you could switch to debops.nginx for now?
It's used much more and therefore more up to date at the moment.
I just checked and indeed the template renders fine with Jinja2==2.8 and
starts failing with Jinja2==2.9. I am not quite sure so, if it is
exactly the same bug, because I was quick checking the used templates
and I cannot see a template included in a loop.
No worries, I am going to switch over to nginx. Thanks for your time and
effort.
Best regards,
Fabian