grafana-ansible-collection/roles/grafana/tasks/notifications.yml
gardar 126c45e646
feat: add grafana server role (#48)
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-05-30 23:01:26 -04:00

14 lines
377 B
YAML

---
- name: "Create/Delete/Update alert notifications channels (provisioning)"
ansible.builtin.copy:
content: |
apiVersion: 1
"{{ grafana_alert_notifications | to_nice_yaml }}"
dest: /etc/grafana/provisioning/notifiers/ansible.yml
owner: root
group: grafana
mode: 0640
become: true
notify: restart_grafana
when: grafana_use_provisioning