Skip to content

Commit 7d77a1c

Browse files
authored
Merge pull request #135 from stackhpc/fix/state_save_locn
Improve openhpc_state_save_location templating
2 parents 1c08015 + d61c937 commit 7d77a1c

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
@@ -22,12 +22,12 @@
2222

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

3232
- name: Generate a Munge key on control host
3333
# 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)