mirror of
https://github.com/prometheus-community/ansible
synced 2024-12-04 01:29:13 +00:00
dcfbfa84d2
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
35 lines
665 B
YAML
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
|