ansible-collection-prometheus/roles/alertmanager/handlers/main.yml

18 lines
403 B
YAML
Raw Normal View History

---
- name: Restart alertmanager
listen: "restart alertmanager"
become: true
ansible.builtin.systemd:
daemon_reload: true
name: alertmanager
state: restarted
register: alertmanager_restarted
- name: Reload alertmanager
listen: "reload alertmanager"
become: true
ansible.builtin.systemd:
name: alertmanager
state: reloaded
when: alertmanager_restarted is not defined