ansible_slurm/tasks/common.yml
Nate Coraor 1efec826c7 Finally devised a way to define conditional defaults without
defaults/main.yml -> vars/condition.yml -> tasks/merge.yml.

Properly templateize everything.

Move as much as possible to defaults to simplify tasks.

Munge stuff is broken, should be fixed soon, just wanted to get this committed.
2019-01-29 21:26:21 -05:00

32 lines
696 B
YAML

---
- name: Install Slurm client
package:
name: "{{ __slurm_packages.client }}"
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
- name: Include config dir creation tasks
include_tasks: _inc_create_config_dir.yml
when: slurm_create_dirs
- name: Install log rotation configuration
template:
src: logrotate.j2
dest: /etc/logrotate.d/slurm
when: slurm_rotate_logs
- name: Install slurm.conf
template:
src: "slurm.conf.j2"
dest: "{{ slurm_config_dir }}/slurm.conf"
owner: root
group: root
mode: 0444
notify:
- restart slurmd
- restart slurmctld
- name: Include munge tasks
include_tasks: munge.yml
when: slurm_configure_munge