main.yml 389 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
---

- name: install alertmanager server
  pacman: name=alertmanager state=present

- name: install alertmanager configuration
  template: src=alertmanager.yml.j2 dest=/etc/alertmanager/alertmanager.yml owner=root group=alertmanager mode=640
  notify: reload alertmanager

- name: enable alertmanager server service
  systemd: name=alertmanager enabled=yes daemon_reload=yes state=started