mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-06-13 12:05:54 +00:00
Add restart strategies, and allow custom task include
Co-authored-by: Helmut Wolf <hwo@world-direct.at> Co-authored-by: Guido Grazioli <ggraziol@redhat.com>
This commit is contained in:
8
roles/keycloak_quarkus/tasks/restart/serial.yml
Normal file
8
roles/keycloak_quarkus/tasks/restart/serial.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: "Restart services in serial, with optional healtch check (keycloak_quarkus_restart_health_check)"
|
||||
throttle: 1
|
||||
loop: "{{ ansible_play_hosts }}"
|
||||
block:
|
||||
- name: "Restart and enable {{ keycloak.service_name }} service on first host"
|
||||
ansible.builtin.include_tasks: ../restart.yml
|
||||
delegate_to: "{{ item }}"
|
||||
Reference in New Issue
Block a user