2017-06-01 13:52:44 -03:00
|
|
|
---
|
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Install Slurm DB packages
|
|
|
|
package:
|
|
|
|
name: "{{ __slurm_packages.slurmdbd }}"
|
2018-04-17 16:37:35 -03:00
|
|
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
|
|
|
|
- name: Install slurmdbd.conf
|
|
|
|
template:
|
2019-01-29 22:26:21 -04:00
|
|
|
src: generic.conf.j2
|
|
|
|
dest: "{{ slurm_config_dir }}/slurmdbd.conf"
|
|
|
|
owner: "{{ __slurm_user_name }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
group: root
|
|
|
|
mode: 0400
|
|
|
|
notify:
|
|
|
|
- reload slurmdbd
|
2019-01-29 22:26:21 -04:00
|
|
|
|
|
|
|
- name: Create slurm log directory
|
|
|
|
file:
|
|
|
|
path: "{{ __slurmdbd_config_merged.LogFile | dirname }}"
|
|
|
|
owner: "{{ __slurm_user_name }}"
|
|
|
|
group: "{{ __slurm_group_name }}"
|
|
|
|
mode: 0755
|
|
|
|
state: directory
|
2019-01-29 23:35:28 -04:00
|
|
|
when: slurm_create_dirs and __slurmdbd_config_merged.LogFile
|