Closed luna-xenia closed 5 months ago
I can fix this by setting keycloak_frontend_url: "http://{{ inventory_hostname }}:8080/auth"
, but now I just get a blank screen:
Did you ever get this fixed? I am having the same sort of issues.
And it seems like this role is not working for newer releases like 20.0.1
, since there is no legacy
filename to be downloaded.
@chrisvanmeer there is no download for the wildfly-based keycloak version 20+ because 19.0.3 is the last one that has been published. From 20.0+, it's the keycloak based on quarkus, for which you should use the keycloak_quarkus
role of the collection.
As for the redirect problem, I couldn't reproduce it.
Installing in the molecule default scenario on a docker container, it produces a working console at http://localhost:8080/auth/ (on the container host).
Installing on a vm using keycloak_frontend_url: "http://{{inventory_hostname}}:8080/auth/"
also has the console in order, given the hostname resolve correctly.
Thanks for clarifying @guidograzioli
SUMMARY
I'm trying to configure keycloak on a single server. I can run this playbook, and it completes successfully, but the server redirects me to localhost when I try to access it in my web browser.
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
1: Make playbook 2: Run playbook 3: Go to server in browser, click on administration console
EXPECTED RESULTS
When I go to the browser, I should be able to access the administrator console using the servers hostname.
ACTUAL RESULTS
The page redirects to localhost:
What I've tried
I have tried setting keycloak_host, at which point the playbook hangs waiting for health to come online:
Do I need a reverse proxy or something, or am I making a configuration mistake? From the README it sounds like what I'm doing is normal but for some reason it isn't working how I expected.