mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-31 00:51:34 -07:00
Do not require hosts edit for running quarkus molecule suite
This commit is contained in:
parent
00e6cb6b0e
commit
307eee771f
2 changed files with 4 additions and 19 deletions
|
@ -16,11 +16,14 @@
|
|||
hera_home: "{{ lookup('env', 'HERA_HOME') }}"
|
||||
|
||||
- name: Verify openid config
|
||||
when:
|
||||
- hera_home is defined
|
||||
- hera_home | length == 0
|
||||
block:
|
||||
- name: Fetch openID config # noqa blocked_modules command-instead-of-module
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
curl https://instance:8443/realms/master/.well-known/openid-configuration -k | jq .
|
||||
curl -H 'Host: instance' https://localhost:8443/realms/master/.well-known/openid-configuration -k | jq .
|
||||
args:
|
||||
executable: /bin/bash
|
||||
delegate_to: localhost
|
||||
|
@ -34,6 +37,3 @@
|
|||
- (openid_config.stdout | from_json)['authorization_endpoint'] == 'https://instance/realms/master/protocol/openid-connect/auth'
|
||||
- (openid_config.stdout | from_json)['token_endpoint'] == 'https://instance/realms/master/protocol/openid-connect/token'
|
||||
delegate_to: localhost
|
||||
when:
|
||||
- hera_home is defined
|
||||
- hera_home | length == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue