From e09438850b289a4511ff04dcaf711f8dcba49180 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 8 Sep 2023 12:55:03 +0200 Subject: fix nginx --- roles/nginx/templates/nginx.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2 index 68c7669..e68f43c 100644 --- a/roles/nginx/templates/nginx.conf.j2 +++ b/roles/nginx/templates/nginx.conf.j2 @@ -6,7 +6,7 @@ {% if val is mapping %}{{ add_tabs(tabs) }}{{ key }} { {% for k, v in val.items() %}{{ procval(k,v,tabs+1) }} {{ add_tabs(tabs) }}{% endfor -%} } -{% elif val is iterable %}{% for v in val %}{{ add_tabs(tabs) }}{{ key }} {{ v }};{% endfor %} +{% elif val is iterable and (var is not string and var is not mapping) %}{% for v in val %}{{ add_tabs(tabs) }}{{ key }} {{ v }};{% endfor %} {%- else -%} {{ add_tabs(tabs) }}{{ key }} {{ val }}; {%- endif -%} -- cgit v1.2.3