2017-06-01 13:52:44 -03:00
|
|
|
---
|
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Install Slurm controller packages
|
|
|
|
package:
|
|
|
|
name: "{{ __slurm_packages.slurmctld }}"
|
2018-04-17 16:37:35 -03:00
|
|
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
|
|
|
|
- name: Create slurm state directory
|
|
|
|
file:
|
2019-01-29 22:26:21 -04:00
|
|
|
path: "{{ __slurm_config_merged.StateSaveLocation }}"
|
|
|
|
owner: "{{ __slurm_user_name }}"
|
|
|
|
group: "{{ __slurm_group_name }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
mode: 0700
|
|
|
|
state: directory
|
2019-01-29 22:26:21 -04:00
|
|
|
when: slurm_create_dirs
|
2017-06-01 13:52:44 -03:00
|
|
|
notify:
|
|
|
|
- reload slurmctld
|
|
|
|
|
|
|
|
- name: Create slurm log directory
|
|
|
|
file:
|
2019-01-29 22:26:21 -04:00
|
|
|
path: "{{ __slurm_config_merged.SlurmctldLogFile | dirname }}"
|
|
|
|
owner: "{{ __slurm_user_name }}"
|
|
|
|
group: "{{ __slurm_group_name }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
mode: 0755
|
|
|
|
state: directory
|
2019-01-29 23:35:28 -04:00
|
|
|
when: slurm_create_dirs and __slurm_config_merged.SlurmctldLogFile
|