From f91ed1ffd4b06d8d1eff1f2a34a8226c98ad793f Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sat, 12 Nov 2016 16:55:01 +0100 Subject: [PATCH] format nginx_extra_http_options with indent http section in nginx.conf is indented by default. To increase readability format the variable nginx_extra_http_options with the same indent for multiline string blocks. Therefore indent needs not to be done in yaml. --- templates/nginx.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 38bf0cd..cedfd72 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -42,7 +42,7 @@ http { {% endif %} {% if nginx_extra_http_options %} - {{ nginx_extra_http_options }} + {{ nginx_extra_http_options|indent(4, False) }} {% endif %} {% for upstream in nginx_upstreams %}