Skip to content

Commit fd43578

Browse files
committed
cope with openhpc_state_save_location not being defined on all non-control hosts
1 parent 065c6b0 commit fd43578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/runtime.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
- name: Ensure Slurm directories exists
2323
file:
24-
path: "{{ item }}"
24+
path: "{{ openhpc_state_save_location }}"
2525
owner: slurm
2626
group: slurm
2727
mode: 0755
2828
state: directory
29-
loop: "{{ ['/var/spool/slurm'] + ([ openhpc_state_save_location ] if inventory_hostname == openhpc_slurm_control_host else []) }}"
29+
when: inventory_hostname == openhpc_slurm_control_host
3030

3131
- name: Generate a Munge key on control host
3232
# NB this is usually a no-op as the package install actually generates a (node-unique) one, so won't usually trigger handler

0 commit comments

Comments
 (0)