From 244653de8e3e14084ced6718c0c1bc5fad04384c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 25 May 2020 14:03:18 +0200 Subject: [PATCH] add nginx_maps_extra var --- defaults/main.yml | 1 + templates/etc/nginx/nginx.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index ef98fd1..da551f7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -97,6 +97,7 @@ nginx_maps: [] # - "default 0" # - "/old/path /new_path" # @end +nginx_maps_extra: [] nginx_error_page: [] # @var nginx_error_page:example: diff --git a/templates/etc/nginx/nginx.conf.j2 b/templates/etc/nginx/nginx.conf.j2 index c545574..ca685fb 100644 --- a/templates/etc/nginx/nginx.conf.j2 +++ b/templates/etc/nginx/nginx.conf.j2 @@ -39,7 +39,7 @@ http { default upgrade; '' close; } - {% for map in nginx_maps %} + {% for map in nginx_maps + nginx_maps_extra %} map {{ map.input }} {{ map.output }} { {% for param in map.parameters %} {{ param }};