forked from cps-deployments/psi.bec
Merge branch 'fix/atlas_deployment' into 'main'
fix: use query param for env file See merge request psd_deployments/roles/psi.bec!12
This commit is contained in:
+2
-4
@@ -71,13 +71,11 @@
|
||||
|
||||
- name: Fetch deployment credentials from BEC Atlas
|
||||
ansible.builtin.uri:
|
||||
url: "https://bec-atlas-qa.psi.ch/api/v1/deploymentCredentials/env"
|
||||
url: "https://bec-atlas-qa.psi.ch/api/v1/deploymentCredentials/env?deployment_name={{ ansible_fqdn }}"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ atlas_auth_response['content'] | trim | regex_replace('^\"(.*)\"$', '\\1') }}"
|
||||
body_format: json
|
||||
body:
|
||||
deployment_name: "{{ ansible_fqdn }}"
|
||||
accept: "text/plain"
|
||||
return_content: yes
|
||||
status_code: 200
|
||||
register: atlas_credentials
|
||||
|
||||
Reference in New Issue
Block a user