From 5a6a085efda8c18a8efb67449d57c6f224f4130a Mon Sep 17 00:00:00 2001 From: Evangelos Foutras <evangelos@foutrelis.com> Date: Sat, 19 Mar 2022 21:12:26 +0200 Subject: [PATCH] dbscripts: nginx: remove unnecessary unique filter The intention of "unique" in "groups['buildservers'] | sort | unique" was to account for combining multiple groups and passing them to the sort and unique filters. However, with only one group it looks silly. --- roles/dbscripts/templates/nginx.d.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/dbscripts/templates/nginx.d.conf.j2 b/roles/dbscripts/templates/nginx.d.conf.j2 index 6c23c7891..d1bd48000 100644 --- a/roles/dbscripts/templates/nginx.d.conf.j2 +++ b/roles/dbscripts/templates/nginx.d.conf.j2 @@ -25,7 +25,7 @@ server { satisfy any; auth_request /devel/mirrorauth/; -{% for host in groups['buildservers'] | sort | unique %} +{% for host in groups['buildservers'] | sort %} # {{ host }} {% for address in ['ipv4_address', 'ipv6_address'] if address in hostvars[host] %} allow {{ hostvars[host][address] }}; -- GitLab