Missing conditionals.

This commit is contained in:
Andrea Dell'Amico 2022-05-01 18:33:28 +02:00
parent dab721eb60
commit bfe0009143
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,7 @@
loop: '{{ nginx_conf_remote_global_conf }}'
delegate_to: 'localhost'
- name: Install any remote snippet configuration file
- name: Install any remote global configuration file
template:
src: '/var/tmp/{{ item.name }}'
dest: '/etc/nginx/conf.d/{{ item.name }}.conf'

View File

@ -5,12 +5,16 @@ include /etc/nginx/snippets/nginx-websockets.conf;
include /etc/nginx/snippets/nginx-websockets.conf;
{% endif %}
{% endif %}
{% if item.global_additional_options is defined %}
{% for add_opt in item.global_additional_options %}
{{ add_opt }};
{% endfor %}
{% endif %}
{% if item.proxy_global_additional_options is defined %}
{% for popt in item.proxy_global_additional_options %}
{{ popt }};
{% endfor %}
{% endif %}
{% if item.upstream_backends is defined %}
{% for u_bk in item.upstream_backends %}