From 10a42e0ab8bd9a7171d251be2e80c700462df0ee Mon Sep 17 00:00:00 2001 From: arnaudfroidmont Date: Fri, 9 Dec 2022 16:17:47 -0700 Subject: [PATCH] Add retry for slurm handlers --- playbooks/roles/slurm/handlers/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/roles/slurm/handlers/main.yml b/playbooks/roles/slurm/handlers/main.yml index addddd5a..20c3a755 100755 --- a/playbooks/roles/slurm/handlers/main.yml +++ b/playbooks/roles/slurm/handlers/main.yml @@ -8,6 +8,10 @@ with_items: - slurmdbd - slurmctld + register: result + until: result is not failed + retries: 5 + delay: 5 - name: restart slurm become: true @@ -17,6 +21,10 @@ enabled: true with_items: - slurmd + register: result + until: result is not failed + retries: 5 + delay: 5 - name: restart munge become: true