From 74c02122bcc8a1069026967f0dc7b01c7b8eb872 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 12 Aug 2024 14:24:16 +0200 Subject: [PATCH] ff --- roles/mgrote_munin_server/handlers/main.yml | 9 +++++++++ roles/mgrote_munin_server/tasks/main.yml | 1 + 2 files changed, 10 insertions(+) diff --git a/roles/mgrote_munin_server/handlers/main.yml b/roles/mgrote_munin_server/handlers/main.yml index 05b5d426..a522cb97 100644 --- a/roles/mgrote_munin_server/handlers/main.yml +++ b/roles/mgrote_munin_server/handlers/main.yml @@ -6,4 +6,13 @@ enabled: true masked: false state: restarted + +- name: "restart munin" + become: true + ansible.builtin.systemd: + name: munin + enabled: true + masked: false + state: restarted + ... diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 20453106..1f682cc8 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -46,6 +46,7 @@ mode: '0644' owner: munin group: munin + notify: "restart munin" - name: Enable or disable the munin cron job. lineinfile: