Skip to content

Commit 5041092

Browse files
authored
template mpi.conf
1 parent 34d3996 commit 5041092

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tasks/runtime.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,20 @@
103103
register: ohpc_cgroup_conf
104104
# NB uses restart rather than reload as this is needed in some cases
105105

106+
- name: Template mpi.conf
107+
template:
108+
src: "{{ openhpc_mpi_template }}"
109+
dest: "{{ openhpc_slurm_conf_path | dirname }}/mpi.conf"
110+
owner: root
111+
group: root
112+
mode: "0644"
113+
when:
114+
- openhpc_enable.control | default(false)
115+
- openhpc_mpi_conf | length > 0
116+
notify:
117+
- Restart slurmctld service
118+
register: ohpc_mpi_conf
119+
106120
# Workaround for https://bugs.rockylinux.org/view.php?id=10165
107121
- name: Fix permissions on /etc for Munge service
108122
ansible.builtin.file:

0 commit comments

Comments
 (0)