2022-03-08 11:08:40 +00:00
|
|
|
---
|
2022-03-11 14:08:53 +00:00
|
|
|
- name: Start keycloak
|
2022-03-08 11:08:40 +00:00
|
|
|
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
|