From 27f1329ad4b75be2e1b21278ea5b347de70b2b58 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 8 Sep 2023 13:06:26 +0200 Subject: nginx formatting --- galaxy.yml | 2 +- roles/nginx/templates/nginx.conf.j2 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index 67ad166..feae776 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,6 +1,6 @@ namespace: kompetenzbolzen name: stuff -version: 0.21.4 +version: 0.21.5 readme: README.md authors: - Jonas Gunz 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 -%} -- cgit v1.2.3