This repository has been archived on 2022-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.netdata/tasks/alerta.yml
decentral1se bf5b28933c
init
2022-05-30 17:00:00 +02:00

20 lines
584 B
YAML

---
- name: Add alerta web hook
no_log: true
lineinfile:
line: ALERTA_WEBHOOK_URL="{{ netdata_alerta_web_hook_url }}"
dest: /etc/netdata/health_alarm_notify.conf
regexp: "^ALERTA_WEBHOOK_URL"
- name: Add alerta API key
lineinfile:
line: ALERTA_API_KEY="{{ netdata_alerta_api_key }}"
dest: /etc/netdata/health_alarm_notify.conf
regexp: "^ALERTA_API_KEY"
- name: Add alerta recipient
lineinfile:
line: DEFAULT_RECIPIENT_ALERTA="{{ netdata_alerta_recipient }}"
dest: /etc/netdata/health_alarm_notify.conf
regexp: "^DEFAULT_RECIPIENT_ALERTA"