forked from cps-deployments/psi.bec
Merge branch 'fix/atlas_deployment' into 'main'
fix: access content by item instead of attribute See merge request psd_deployments/roles/psi.bec!11
This commit is contained in:
+2
-2
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user