32 lines
827 B
YAML
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"
|