middleware_automation.keycloak/roles/keycloak/tasks/start_keycloak.yml
Guido Grazioli d6f020ab44 linter fixes
2023-12-01 12:36:20 +01:00

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 }}"