grafana-ansible-collection/roles/grafana/tasks/notifications.yml

14 lines
377 B
YAML
Raw Normal View History

---
- 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