Wait for the service to be available.

This commit is contained in:
Andrea Dell'Amico 2023-01-25 11:04:51 +01:00
parent 0f49dda00f
commit 0605f917c1
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 0 deletions

View File

@ -27,4 +27,10 @@
state: started
enabled: true
- name: Wait for the service to be up before proceeding
ansible.builtin.wait_for:
port: "{% if keycloak_https_enabled %}{{ keycloak_https_port }}{% else %}{{ keycloak_http_port }}{% endif %}"
delay: 10
timeout: 90
tags: ['keycloak', 'keycloak_service', 'keycloak_conf']