diff --git a/tasks/configure.yml b/tasks/configure.yml index e1452bad6bb2b11abbc709a3d99d66da9c07ca19..cf210cae9821830c6244ba954446ba49229d58bd 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -49,6 +49,17 @@ notify: - "Restart NetData" +- name: "Get a list of all health config files" + shell: 'ls /etc/netdata/health.d/*.conf -1' + register: health_list + +- name: "Remove all options that prevent clear notifications" + lineinfile: + path: '{{ item }}' + state: absent + regexp: 'no-clear-notification' + with_items: '{{ health_list.stdout_lines }}' + - name: "Patch Startup Script" lineinfile: dest: '/etc/init.d/netdata'