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: