aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx/templates/nginx.conf.j2
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-09-08 13:06:26 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-09-08 13:06:26 +0200
commit27f1329ad4b75be2e1b21278ea5b347de70b2b58 (patch)
treef3a3107777025021573f7e719596126f4361d31e /roles/nginx/templates/nginx.conf.j2
parent71d4f850c562c7de0cef29c8022f656540b3b326 (diff)
downloadansible_collection-27f1329ad4b75be2e1b21278ea5b347de70b2b58.tar.gz
nginx formatting
Diffstat (limited to 'roles/nginx/templates/nginx.conf.j2')
-rw-r--r--roles/nginx/templates/nginx.conf.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2
index 76c98e3..9d2bb87 100644
--- a/roles/nginx/templates/nginx.conf.j2
+++ b/roles/nginx/templates/nginx.conf.j2
@@ -6,7 +6,8 @@
{% 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 and (val is not string and val is not mapping) %}{% for v in val %}{{ add_tabs(tabs) }}{{ key }} {{ v }};{% endfor %}
+{% elif val is iterable and (val is not string and val is not mapping) %}{% for v in val %}{{ add_tabs(tabs) }}{{ key }} {{ v }};
+{% endfor %}
{%- else -%}
{{ add_tabs(tabs) }}{{ key }} {{ val }};
{%- endif -%}