From bac0a2a92a27b619d35ac49d3277f695c2008068 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 11 Sep 2025 09:42:37 +0200 Subject: [PATCH] fix: access content by item instead of attribute --- tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index eb0519b..080bc70 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -74,7 +74,7 @@ url: "https://bec-atlas-qa.psi.ch/api/v1/deploymentCredentials/env" method: GET headers: - Authorization: "Bearer {{ atlas_auth_response.content | trim | regex_replace('^\"(.*)\"$', '\\1') }}" + Authorization: "Bearer {{ atlas_auth_response['content'] | trim | regex_replace('^\"(.*)\"$', '\\1') }}" body_format: json body: deployment_name: "{{ ansible_fqdn }}" @@ -88,7 +88,7 @@ - name: Save BEC Atlas credentials to file ansible.builtin.copy: - content: "{{ atlas_credentials.content }}" + content: "{{ atlas_credentials['content'] }}" dest: "/etc/bec/secrets/.atlas.env" mode: "0600" become_user: "{{ service_user }}"