2017-06-01 13:52:44 -03:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install Slurm execution host packages (apt)
|
|
|
|
apt:
|
|
|
|
name: "{{ item }}"
|
2018-04-17 16:37:35 -03:00
|
|
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
with_items:
|
|
|
|
- slurm-wlm
|
|
|
|
|
|
|
|
- name: Install Slurm execution host packages (yum)
|
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
2018-04-17 16:37:35 -03:00
|
|
|
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
|
2017-06-01 13:52:44 -03:00
|
|
|
with_items:
|
2018-04-17 16:37:35 -03:00
|
|
|
- munge
|
2017-06-01 13:52:44 -03:00
|
|
|
- slurm
|
2018-04-17 16:37:35 -03:00
|
|
|
- slurm-slurmd
|
2017-06-01 13:52:44 -03:00
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
- name: Create slurm spool directory
|
|
|
|
file:
|
|
|
|
path: "{{ slurmd_spool_dir }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
state: directory
|
|
|
|
notify:
|
|
|
|
- reload slurmd
|