Skip to content

Commit cfbc4fd

Browse files
committed
Restart Slurm if cgroup.conf has changed
1 parent 6913e9c commit cfbc4fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tasks/runtime.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@
105105
owner: root
106106
group: root
107107
when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool
108+
notify:
109+
- Restart slurmctld service
110+
register: ohpc_cgroup_conf
111+
# NB uses restart rather than reload as this is needed in some cases
108112

109113
- name: Remove local tempfile for slurm.conf templating
110114
ansible.builtin.file:
@@ -139,7 +143,7 @@
139143
changed_when: true
140144
when:
141145
- openhpc_slurm_control_host in ansible_play_hosts
142-
- hostvars[openhpc_slurm_control_host].ohpc_slurm_conf.changed or hostvars[openhpc_slurm_control_host].ohpc_gres_conf.changed # noqa no-handler
146+
- hostvars[openhpc_slurm_control_host].ohpc_slurm_conf.changed or hostvars[openhpc_slurm_control_host].ohpc_cgroup_conf.changed or hostvars[openhpc_slurm_control_host].ohpc_gres_conf.changed # noqa no-handler
143147
notify:
144148
- Restart slurmd service
145149

0 commit comments

Comments
 (0)