ansible/roles/prometheus-alertmanager/tasks/main.yml

15 lines
357 B
YAML
Raw Normal View History

2019-05-05 14:07:04 +02:00
---
- name: Install Prometheus Alertmanager
apt:
update_cache: true
name: prometheus-alertmanager
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure Prometheus Alertmanager
template:
src: prometheus/alertmanager.yml.j2
dest: /etc/prometheus/alertmanager.yml
notify: Restart Prometheus Alertmanager