aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx/templates
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-09-08 12:55:03 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-09-08 12:55:03 +0200
commite09438850b289a4511ff04dcaf711f8dcba49180 (patch)
tree0a617b589ea57aae01c66c30a94914abe4315173 /roles/nginx/templates
parent1b244189b0a417b01f3dcd7dc7ed1167ab3d3f10 (diff)
downloadansible_collection-e09438850b289a4511ff04dcaf711f8dcba49180.tar.gz
fix nginx
Diffstat (limited to 'roles/nginx/templates')
-rw-r--r--roles/nginx/templates/nginx.conf.j22
1 files changed, 1 insertions, 1 deletions
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 -%}