From a584e9ae77211a6946b23909e00ab80e724fea86 Mon Sep 17 00:00:00 2001
From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de>
Date: Wed, 25 Sep 2024 17:12:07 +0200
Subject: [PATCH] caddy: Fix disable inactive site/config logic
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This was copied from the webserver role, however here we don’t have a `.conf`
file suffix.
---
 caddy/tasks/main.yml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/caddy/tasks/main.yml b/caddy/tasks/main.yml
index 50edad9..b4735b4 100644
--- a/caddy/tasks/main.yml
+++ b/caddy/tasks/main.yml
@@ -116,8 +116,6 @@
     {{ current_active_sites.files
        | map(attribute='path')
        | map('basename')
-       | map('splitext')
-       | map('first')
        | difference(wanted_active_sites)
     }}
   loop_control:
@@ -149,8 +147,6 @@
     {{ current_active_config.files
        | map(attribute='path')
        | map('basename')
-       | map('splitext')
-       | map('first')
        | difference(wanted_active_config)
     }}
   loop_control:
-- 
GitLab