2017-06-01 13:52:44 -03:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install Slurm DB 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:
|
|
|
|
- slurmdbd
|
|
|
|
|
|
|
|
- name: Install Slurm DB 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:
|
|
|
|
- munge
|
|
|
|
- slurm-slurmdbd
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
- name: Install slurmdbd.conf
|
|
|
|
template:
|
|
|
|
src: slurmdbd.conf.j2
|
|
|
|
dest: "{{ slurm_conf_dir }}/slurmdbd.conf"
|
|
|
|
owner: slurm
|
|
|
|
group: root
|
|
|
|
mode: 0400
|
|
|
|
notify:
|
|
|
|
- reload slurmdbd
|