From fe5ff1b12b931e87536c96fa13f0a58d89cd2a60 Mon Sep 17 00:00:00 2001 From: Bruno Travouillon Date: Fri, 16 Feb 2024 08:09:14 -0500 Subject: [PATCH] Restart slurmd and slurmctld after a Slurm upgrade Make sure to execute the correct Slurm after the upgrade. Otherwise, this may cause issues when reloading the service during logrotate since some files changed on the system. --- tasks/common.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/common.yml b/tasks/common.yml index 87d4357..a2edaf8 100644 --- a/tasks/common.yml +++ b/tasks/common.yml @@ -4,6 +4,9 @@ ansible.builtin.package: name: "{{ __slurm_packages.client }}" state: "{{ 'latest' if slurm_upgrade else 'present' }}" + notify: + - Restart slurmd + - Restart slurmctld - name: Include config dir creation tasks ansible.builtin.include_tasks: _inc_create_config_dir.yml