From c99f44aca7ea11e962bf62aabe153dfb26828bc5 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 23 May 2020 02:02:06 +0200 Subject: [PATCH] fix formatting --- tasks/vhost.yml | 1 - templates/etc/nginx/nginx.conf.j2 | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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;