ansible-middleware/keycloak

Service availability wait after restart not happening by default

Closed this issue · 3 comments

SUMMARY

Hello,

after upgrading this collection:

   - name: middleware_automation.keycloak
-    version: 2.1.2
+    version: 2.3.0

I got a failure in my playbook because I have some tasks to configure realm/clients upon the execution of this collection, because the keycloak service was (not yet) up and running upon first (re)start.

After setting keycloak_quarkus_restart_health_check: true, I've got the old behaviour for which the role do an active wait for the service to be available.

What's the reason for having it optional?

A major overhaul of the HA scenario happened; I guess at some point the flag turned from always true, to true only is ha_enabled is true. See: #231 and #199

Totally open for discussing flicking it back to always true

I took a quick look and seems safe to switch the default to true, raised a PR

I'll bump to 2.4.0 and release as soon the CI finishes