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:
Guido Grazioli
2024-05-15 13:34:29 +02:00
parent 1e9a669dea
commit 2d573c2b62
9 changed files with 104 additions and 45 deletions

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