diff --git a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml index 0be4af8b..4a28b6a5 100644 --- a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml +++ b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml @@ -45,7 +45,9 @@ - name: Re-encode modified alertmanager content for cluster ansible.builtin.set_fact: encoded_alertmanager_secret_content: "{{ modified_alertmanager_secret_content | to_nice_yaml | b64encode }}" - when: $provision_mode == "hubAndSpoke" + vars: + provision_mode_check: "{{ provision_mode }}" + when: provision_mode_check == "hubAndSpoke" - name: Create a new SyncSet for each cluster to patch alertmanager-main secret kubernetes.core.k8s: