2022-09-22 14:38:42 +00:00
|
|
|
---
|
2022-11-25 10:37:52 +00:00
|
|
|
- name: Restart alertmanager
|
|
|
|
listen: "restart alertmanager"
|
2022-09-22 14:38:42 +00:00
|
|
|
become: true
|
2022-09-23 12:07:54 +00:00
|
|
|
ansible.builtin.systemd:
|
2022-09-22 14:38:42 +00:00
|
|
|
daemon_reload: true
|
|
|
|
name: alertmanager
|
|
|
|
state: restarted
|
2024-01-29 10:08:01 +00:00
|
|
|
register: alertmanager_restarted
|
2022-09-22 14:38:42 +00:00
|
|
|
|
2022-11-25 10:37:52 +00:00
|
|
|
- name: Reload alertmanager
|
|
|
|
listen: "reload alertmanager"
|
2022-09-22 14:38:42 +00:00
|
|
|
become: true
|
2022-09-23 12:07:54 +00:00
|
|
|
ansible.builtin.systemd:
|
2022-09-22 14:38:42 +00:00
|
|
|
name: alertmanager
|
|
|
|
state: reloaded
|
2024-01-29 10:08:01 +00:00
|
|
|
when: alertmanager_restarted is not defined
|