From 4c0d08285daf0b8c0649ef74c3e6a68ccd3eca88 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Fri, 25 Oct 2024 11:35:21 +0200 Subject: [PATCH] Do not run redis restart handler when in check mode --- handlers/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/main.yaml b/handlers/main.yaml index 838c93f..f6d9d30 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -4,6 +4,7 @@ name: redis.service enabled: true state: restarted + when: not ansible_check_mode - name: (Re-)start BEC server ansible.builtin.systemd_service: