From 58f95508d8ea6c2f7b765e810bbc8fca37515855 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 11 Dec 2023 19:45:42 +0100 Subject: [PATCH] Removed debuging message --- roles/nginx-www-redirect/tasks/main.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/roles/nginx-www-redirect/tasks/main.yml b/roles/nginx-www-redirect/tasks/main.yml index 9f2acee2..025834a0 100644 --- a/roles/nginx-www-redirect/tasks/main.yml +++ b/roles/nginx-www-redirect/tasks/main.yml @@ -5,18 +5,13 @@ patterns: '*.*.conf' register: conf_files -- name: Print conf_files domains - debug: - var: conf_files - - name: Filter domain names and remove .conf extension and path set_fact: filtered_domains: "{{ conf_files.files | map(attribute='path') | map('regex_search', domain_regex) | select('string') | map('regex_replace', '^/etc/nginx/conf.d/', '') | map('regex_replace', '.conf$', '') | list }}" vars: domain_regex: '^/etc/nginx/conf.d/(?!www\.)[^/]+\.conf$' - -- name: Print filtered domains +- name: The domains for which a www. redirect will be implemented debug: var: filtered_domains