mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-06 02:40:30 -07:00
16 lines
492 B
YAML
16 lines
492 B
YAML
---
|
|
- name: "Start {{ keycloak.service_name }} service"
|
|
ansible.builtin.systemd:
|
|
name: keycloak
|
|
enabled: true
|
|
state: started
|
|
daemon_reload: true
|
|
become: true
|
|
|
|
- name: "Wait until {{ keycloak.service_name }} becomes active {{ keycloak.health_url }}"
|
|
ansible.builtin.uri:
|
|
url: "{{ keycloak.health_url }}"
|
|
register: keycloak_status
|
|
until: keycloak_status.status == 200
|
|
retries: "{{ keycloak_service_start_retries }}"
|
|
delay: "{{ keycloak_service_start_delay }}"
|