diff --git a/roles/munin-node/handlers/main.yml b/roles/munin-node/handlers/main.yml index 257442f..5588bd3 100644 --- a/roles/munin-node/handlers/main.yml +++ b/roles/munin-node/handlers/main.yml @@ -3,3 +3,7 @@ service: name: "{{ munin_node_service }}" state: restarted + +- name: munin-node configure + shell: munin-node-configure --shell --remove-also 2> /dev/null | /bin/sh + notify: restart munin-node diff --git a/roles/munin-node/tasks/main.yml b/roles/munin-node/tasks/main.yml index d1c8a24..661514c 100644 --- a/roles/munin-node/tasks/main.yml +++ b/roles/munin-node/tasks/main.yml @@ -15,7 +15,7 @@ mode: 0644 owner: root group: "{{ ansible_wheel }}" - notify: restart munin-node + notify: munin-node configure - name: enable service service: