ansible_slurm/handlers/main.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
827 B
YAML

---
- name: reload slurmd
service:
name: "{{ slurmd_service_name }}"
state: reloaded
when: "'slurmexechosts' in group_names or 'exec' in slurm_roles"
- name: restart slurmd
service:
name: "{{ slurmd_service_name }}"
state: restarted
when: "'slurmexechosts' in group_names or 'exec' in slurm_roles"
- name: reload slurmctld
service:
name: "{{ slurmctld_service_name }}"
state: reloaded
when: "'slurmservers' in group_names or 'controller' in slurm_roles"
- name: restart slurmctld
service:
name: "{{ slurmctld_service_name }}"
state: restarted
when: "'slurmservers' in group_names or 'controller' in slurm_roles"
- name: reload slurmdbd
service:
name: "{{ slurmdbd_service_name }}"
state: reloaded
when: "'slurmdbdservers' in group_names or 'dbd' in slurm_roles"