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

don't create /var/run if it already exists

parent e79d6ac7
No related branches found
No related tags found
No related merge requests found
...@@ -27,11 +27,16 @@ ...@@ -27,11 +27,16 @@
file: path={{ slurmdatadir }} state=directory owner=slurm group=slurm mode=755 file: path={{ slurmdatadir }} state=directory owner=slurm group=slurm mode=755
sudo: true sudo: true
when: slurmdatadir is defined when: slurmdatadir is defined
- name: stat run directory
stat: path={{ slurmpiddir }}
register: runstat
when: slurmpiddir is defined
- name: create run directory - name: create run directory
file: path={{ slurmpiddir }} state=directory owner=root group=root mode=750 file: path={{ slurmpiddir }} state=directory owner=root group=root mode=750
sudo: true sudo: true
when: slurmpiddir is defined when: slurmpiddir is defined and not runstat.stat.exists
- name: create state directory - name: create state directory
file: path={{ slurmstatedir }} state=directory owner=slurm group=slurm mode=750 file: path={{ slurmstatedir }} state=directory owner=slurm group=slurm mode=750
......
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