Skip to content
Snippets Groups Projects
Commit 67a1d184 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'directory_ownership' into 'master'

alter the ownership on the directory where slurm stores its pid file

See merge request !41
parents ec9c84b1 d9564622
No related branches found
No related tags found
No related merge requests found
......@@ -30,11 +30,13 @@
- name: stat run directory
stat: path={{ slurmpiddir }}
become_user: root
become: True
register: runstat
when: slurmpiddir is defined
- name: create run directory
file: path={{ slurmpiddir }} state=directory owner=root group=root mode=750
file: path={{ slurmpiddir }} state=directory owner=slurm group=slurm mode=755
sudo: true
when: slurmpiddir is defined and not runstat.stat.exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment