diff --git a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml index 73989fd2..b6d4ddef 100644 --- a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml +++ b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml @@ -2,21 +2,21 @@ ansible.builtin.set_fact: modified_alertmanager_secret_content: > {{ (fetched_alertmanager_secret.resources[0].data['alertmanager.yaml'] | b64decode | from_yaml) | combine({ - 'receivers': [ + "receivers": [ { - 'name': receiver_name, - 'webhook_configs': [{ - 'url': receiver_url + "name": "receiver_name", + "webhook_configs": [{ + "url": "receiver_url" }] } ], - 'route': { - 'receiver': receiver_name, - 'routes': [ + "route": { + "receiver": "receiver_name", + "routes": [ { - 'receiver': receiver_name, - 'match': { - 'severity': 'info | warning | critical' + "receiver": "receiver_name", + "match": { + "severity": "info | warning | critical" } } ]