aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx/templates/nginx.conf.j2
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-09-08 12:44:37 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-09-08 12:44:37 +0200
commitb9e9acaeb0c97ba9f904ce0567584158166cba12 (patch)
tree004ddbbd9585c980c80976648a220b6b0610bde8 /roles/nginx/templates/nginx.conf.j2
parent347803f5a811972c719b09999d4d2b5e9e32e3eb (diff)
downloadansible_collection-b9e9acaeb0c97ba9f904ce0567584158166cba12.tar.gz
fix nginx config template
Diffstat (limited to 'roles/nginx/templates/nginx.conf.j2')
-rw-r--r--roles/nginx/templates/nginx.conf.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2
index 875003b..dbe251e 100644
--- a/roles/nginx/templates/nginx.conf.j2
+++ b/roles/nginx/templates/nginx.conf.j2
@@ -6,6 +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 %}
{%- else -%}
{{ add_tabs(tabs) }}{{ key }} {{ val }};
{%- endif -%}