From c8cc7f488f6a39bd1e05938c9e0256f501e6087d Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Mon, 11 Nov 2024 04:09:41 +0100 Subject: [PATCH] improve nut handler (#105) --- handlers/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 451e660..4a20a34 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -198,7 +198,11 @@ # cron - name: nut restart # noqa no-changed-when - ansible.builtin.command: configctl nut restart + ansible.builtin.command: "{{ item }}" + with_items: + - configctl nut stop + - configctl template reload OPNsense/Nut + - configctl nut start when: - config is defined - config.changed | bool