From 862a8a088ec486a8669c41225b3968a4b1eeb1d5 Mon Sep 17 00:00:00 2001
From: Evangelos Foutras <evangelos@foutrelis.com>
Date: Sat, 9 Jul 2022 09:51:50 +0300
Subject: [PATCH] playbooks/mirrors: make archweb inclusion conditional

We do not really want to make all mirrors run mirrorcheck, so make it
conditional based on whether archweb_mirrorcheck_locations is defined.
---
 playbooks/mirrors.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/playbooks/mirrors.yml b/playbooks/mirrors.yml
index 9e83e4df4..b654fe69f 100644
--- a/playbooks/mirrors.yml
+++ b/playbooks/mirrors.yml
@@ -11,7 +11,7 @@
     - { role: nginx }
     - { role: syncrepo, tags: ['nginx'] }
     - { role: syncdebug, when: mirror_debug_packages is not defined or mirror_debug_packages }
-    - { role: archweb, archweb_site: false, archweb_services: false, archweb_mirrorcheck: true }
+    - { role: archweb, when: archweb_mirrorcheck_locations is defined, archweb_site: false, archweb_services: false, archweb_mirrorcheck: true }
     - { role: prometheus_exporters }
     - { role: promtail }
     - { role: fail2ban }
-- 
GitLab