grafana-ansible-collection/tests/integration/targets/alert_notification_policy/tasks/main.yml

16 lines
365 B
YAML
Raw Normal View History

- name: Set Notification policy tree
grafana.grafana.alert_notification_policy:
stack_slug: "{{ stack_name }}"
grafana_api_key: "{{ grafana_api_key }}"
2023-03-03 10:42:06 +01:00
routes: [
{
receiver: grafana-default-email,
object_matchers: [["env", "=", "Production"]],
}
]
register: result
2023-03-03 10:42:06 +01:00
- assert:
that:
- result.failed == false