Update main.yml
This commit is contained in:
parent
a513d9b64f
commit
71e05aa022
@ -1,15 +1,16 @@
|
|||||||
---
|
|
||||||
- name: Set Notification policy tree
|
- name: Set Notification policy tree
|
||||||
grafana.grafana.alert_notification_policy:
|
grafana.grafana.alert_notification_policy:
|
||||||
stack_slug: "{{ stack_name }}"
|
stack_slug: "{{ stack_name }}"
|
||||||
grafana_api_key: "{{ grafana_api_key }}"
|
grafana_api_key: "{{ grafana_api_key }}"
|
||||||
routes:
|
routes: [
|
||||||
- receiver: ansible,
|
{
|
||||||
object_matchers: [["env", "=", "Production"]]
|
receiver: grafana-default-email,
|
||||||
|
object_matchers: [["env", "=", "Production"]],
|
||||||
|
}
|
||||||
|
]
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Notification Check
|
- assert:
|
||||||
ansible.builtin.assert:
|
|
||||||
that:
|
that:
|
||||||
- result.failed == false
|
- result.failed == false
|
||||||
- result.output.provenance == "api"
|
- result.output.provenance == "api"
|
||||||
|
Loading…
Reference in New Issue
Block a user