mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-08-27 00:11:53 -07:00
Replace use of serial with run_once
run_once on first node when database config enabled (so the first node creates the tables), then wakeup all other nodes
This commit is contained in:
parent
0bc81cc781
commit
b88c43933c
5 changed files with 30 additions and 24 deletions
15
roles/keycloak/tasks/start_keycloak.yml
Normal file
15
roles/keycloak/tasks/start_keycloak.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: start keycloak
|
||||
ansible.builtin.systemd:
|
||||
name: keycloak
|
||||
enabled: yes
|
||||
state: started
|
||||
become: yes
|
||||
|
||||
- name: "Wait until Keycloak becomes active {{ keycloak.health_url }}"
|
||||
ansible.builtin.uri:
|
||||
url: "{{ keycloak.health_url }}"
|
||||
register: keycloak_status
|
||||
until: keycloak_status.status == 200
|
||||
retries: 25
|
||||
delay: 10
|
Loading…
Add table
Add a link
Reference in a new issue