diff --git a/tasks/vhost.yml b/tasks/vhost.yml index d25c703..bb1f37e 100644 --- a/tasks/vhost.yml +++ b/tasks/vhost.yml @@ -7,7 +7,6 @@ owner: root group: root mode: 0640 - validate: /bin/bash -c 'nginx -t -c /dev/stdin <<< "events {worker_connections 10;} http { include %s; }"' loop: "{{ nginx_vhosts_default + nginx_vhosts_extra }}" loop_control: label: "{{ item.file }}" diff --git a/templates/etc/nginx/nginx.conf.j2 b/templates/etc/nginx/nginx.conf.j2 index 283ea55..d64079a 100644 --- a/templates/etc/nginx/nginx.conf.j2 +++ b/templates/etc/nginx/nginx.conf.j2 @@ -34,11 +34,11 @@ http { '' close; } {% for map in nginx_maps %} - map {{ map.input }} {{ map.output }} { - {% for param in map.parameters %} - {{ param }}; - {% endfor %} - } + map {{ map.input }} {{ map.output }} { + {% for param in map.parameters %} + {{ param }}; + {% endfor %} + } {% endfor %} sendfile on;