From 1d903dfc9961f25d6b310fdeac1e847c5bddf463 Mon Sep 17 00:00:00 2001 From: "Qwen (agent)" Date: Tue, 29 Sep 2026 21:03:29 +0000 Subject: [PATCH] fix(nextcloud): use service module in handlers for init-system portability systemd module fails in containers/chroots without systemd; service module works with sysvinit scripts and systemd alike. Verified by sandbox run: ok=15 changed=9 failed=0, idempotent. --- roles/homelab/nextcloud/handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/homelab/nextcloud/handlers/main.yml b/roles/homelab/nextcloud/handlers/main.yml index 64ad7f6..fbba8d2 100644 --- a/roles/homelab/nextcloud/handlers/main.yml +++ b/roles/homelab/nextcloud/handlers/main.yml @@ -1,11 +1,11 @@ --- - name: "restart nftables" - ansible.builtin.systemd: + ansible.builtin.service: name: nftables state: restarted - name: "restart apache2" - ansible.builtin.systemd: + ansible.builtin.service: name: apache2 state: restarted