ansible-collection-prometheus/roles/alertmanager/tasks/main.yml
Paweł Krupa (paulfantom) dcfbfa84d2 initial migration of roles from cloudalchemy
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2022-09-23 13:29:55 +02:00

35 lines
665 B
YAML

---
- include: preflight.yml
tags:
- alertmanager_install
- alertmanager_configure
- alertmanager_run
- include: install.yml
become: true
tags:
- alertmanager_install
- import_tasks: selinux.yml
become: true
when: ansible_selinux.status == "enabled"
tags:
- alertmanager_configure
- include: configure.yml
become: true
tags:
- alertmanager_configure
- name: ensure alertmanager service is started and enabled
become: true
systemd:
daemon_reload: true
name: alertmanager
state: started
enabled: true
tags:
- alertmanager_run
- name: Flush alertmangaer handlers after run.
meta: flush_handlers