You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
866 B
25 lines
866 B
---
|
|
|
|
- debug:
|
|
var: threescale_cicd_authenticate_to_keycloak_payload
|
|
verbosity: 1
|
|
no_log: '{{ threescale_cicd_nolog }}'
|
|
|
|
- name: Authenticate to RH-SSO
|
|
uri:
|
|
url: '{{ threescale_cicd_sso_realm_endpoint }}/protocol/openid-connect/token'
|
|
body: '{{ threescale_cicd_authenticate_to_keycloak_payload }}'
|
|
method: POST
|
|
validate_certs: no
|
|
return_content: yes
|
|
register: threescale_cicd_tmpresponse
|
|
retries: '{{ threescale_cicd_retries }}'
|
|
delay: '{{ threescale_cicd_delay }}'
|
|
# temporary fix for https://github.com/ansible/ansible/issues/28078
|
|
until: 'threescale_cicd_tmpresponse is success'
|
|
no_log: '{{ threescale_cicd_nolog }}'
|
|
|
|
- name: Extract the access_token
|
|
set_fact:
|
|
threescale_cicd_keycloak_access_token: '{{ threescale_cicd_tmpresponse.json |json_query("access_token") }}'
|
|
no_log: '{{ threescale_cicd_nolog }}'
|
|
|