Skip to content

Commit 070209b

Browse files
Fix gres.conf generation
1 parent a3a9f52 commit 070209b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

playbooks/roles/slurm/tasks/compute-rack-aware.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
blockinfile:
8383
block: "{{ lookup('template', 'gres.conf.j2') }}"
8484
path: "{{ slurm_conf_path }}/gres.conf"
85-
marker: "### {{ansible_hostname}}"
85+
marker: "### {mark} {{ansible_hostname}}"
86+
throttle: 1
8687
delegate_to: 127.0.0.1
8788
when: "'GPU' in shape"
8889

playbooks/roles/slurm/tasks/compute.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
blockinfile:
8686
block: "{{ lookup('template', 'gres.conf.j2') }}"
8787
path: "{{ slurm_conf_path }}/gres.conf"
88-
marker: "### {{ansible_hostname}}"
88+
marker: "### {mark} {{ansible_hostname}}"
89+
throttle: 1
8990
delegate_to: 127.0.0.1
9091
when: "'GPU' in shape"
9192

0 commit comments

Comments
 (0)