ansible-keycloak/roles/keycloak_quarkus/tasks/start.yml

15 lines
395 B
YAML
Raw Permalink Normal View History

2022-04-07 12:07:08 +00:00
---
- name: "Start {{ keycloak.service_name }} service"
ansible.builtin.systemd:
name: keycloak
enabled: yes
state: started
become: yes
- 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: 25
delay: 10