ansible_slurm/tasks/slurmd.yml

30 lines
632 B
YAML
Raw Normal View History

---
- 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' }}"
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' }}"
with_items:
2018-04-17 16:37:35 -03:00
- munge
- slurm
2018-04-17 16:37:35 -03:00
- slurm-slurmd
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