Initial commit

This commit is contained in:
nd 2020-06-02 17:35:56 +02:00
commit 0f748dd02a
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
4 changed files with 136 additions and 0 deletions

18
tasks/main.yml Normal file
View file

@ -0,0 +1,18 @@
- name: install alertmanager
apt:
pkg: prometheus-alertmanager
- name: wrtie alertmanager service config
notify: restart alertmanager
template:
src: prometheus-alertmanager.j2
dest: /etc/default/prometheus-alertmanager
- name: wrtie alertmanager config
notify: restart alertmanager
copy:
owner: root
group: root
mode: 0644
dest: /etc/prometheus/alertmanager.yml
content: "{{ prometheus_alertmanager.config|to_nice_yaml(indent=2) }}"