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:
Guido Grazioli 2022-03-08 12:08:40 +01:00
commit b88c43933c
No known key found for this signature in database
GPG key ID: 22C8C31EF2BC093B
5 changed files with 30 additions and 24 deletions

View 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