mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-07 22:11:36 +01:00
feat: add icinga restart handler
This commit is contained in:
4
roles/monitoring-master/handlers/main.yml
Normal file
4
roles/monitoring-master/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: restart icinga
|
||||||
|
systemd:
|
||||||
|
name: icinga2
|
||||||
|
state: restarted
|
||||||
@@ -53,8 +53,12 @@
|
|||||||
- services_passive.conf
|
- services_passive.conf
|
||||||
- services_passive_mail_extern.conf
|
- services_passive_mail_extern.conf
|
||||||
- services_async.conf
|
- services_async.conf
|
||||||
|
notify:
|
||||||
|
- restart icinga
|
||||||
|
|
||||||
- name: Signal command loaded from monitoring tools
|
- name: Signal command loaded from monitoring tools
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/icinga2/icinga2.conf
|
path: /etc/icinga2/icinga2.conf
|
||||||
line: "include monitoring-tools/commands.d/signal-notify.conf"
|
line: "include monitoring-tools/commands.d/signal-notify.conf"
|
||||||
|
notify:
|
||||||
|
- restart icinga
|
||||||
|
|||||||
Reference in New Issue
Block a user