diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-09-08 13:01:42 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-09-08 13:01:42 +0200 |
commit | 71d4f850c562c7de0cef29c8022f656540b3b326 (patch) | |
tree | 1a22346123eaefa021e697e02d969ed381eba02c /roles/nginx | |
parent | e09438850b289a4511ff04dcaf711f8dcba49180 (diff) | |
download | ansible_collection-71d4f850c562c7de0cef29c8022f656540b3b326.tar.gz |
fix nginx
Diffstat (limited to 'roles/nginx')
-rw-r--r-- | roles/nginx/templates/nginx.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2 index e68f43c..76c98e3 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 and (var is not string and var 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 -%} |