diff --git a/roles/monitoring-master/handlers/main.yml b/roles/monitoring-master/handlers/main.yml new file mode 100644 index 0000000..cf88ca5 --- /dev/null +++ b/roles/monitoring-master/handlers/main.yml @@ -0,0 +1,4 @@ +- name: restart icinga + systemd: + name: icinga2 + state: restarted diff --git a/roles/monitoring-master/tasks/main.yaml b/roles/monitoring-master/tasks/main.yaml index e70c2af..554e461 100644 --- a/roles/monitoring-master/tasks/main.yaml +++ b/roles/monitoring-master/tasks/main.yaml @@ -53,8 +53,12 @@ - services_passive.conf - services_passive_mail_extern.conf - services_async.conf + notify: + - restart icinga - name: Signal command loaded from monitoring tools lineinfile: path: /etc/icinga2/icinga2.conf line: "include monitoring-tools/commands.d/signal-notify.conf" + notify: + - restart icinga