2016-04-05 18:35:18 -03:00
|
|
|
---
|
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Include user creation tasks
|
|
|
|
include_tasks: user.yml
|
2019-01-29 23:35:28 -04:00
|
|
|
when: slurm_create_user
|
2017-04-04 12:22:04 -03:00
|
|
|
|
2017-06-01 13:52:44 -03:00
|
|
|
- name: Include controller installation tasks
|
2019-01-29 16:34:55 -04:00
|
|
|
include_tasks: slurmctld.yml
|
2019-01-26 16:47:07 -04:00
|
|
|
when: "'slurmservers' in group_names or 'controller' in slurm_roles"
|
2017-06-01 13:52:44 -03:00
|
|
|
|
|
|
|
- name: Include execution host installation tasks
|
2019-01-29 16:34:55 -04:00
|
|
|
include_tasks: slurmd.yml
|
2019-01-26 16:47:07 -04:00
|
|
|
when: "'slurmexechosts' in group_names or 'exec' in slurm_roles"
|
2017-06-01 13:52:44 -03:00
|
|
|
|
|
|
|
- name: Include DB installation tasks
|
2019-01-29 16:34:55 -04:00
|
|
|
include_tasks: slurmdbd.yml
|
|
|
|
when: "'slurmdbdservers' in group_names or 'dbd' in slurm_roles"
|
2017-06-01 13:52:44 -03:00
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Import common tasks
|
|
|
|
import_tasks: common.yml
|
2016-04-05 18:35:18 -03:00
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Ensure slurmdbd is enabled and running
|
2016-04-05 18:35:18 -03:00
|
|
|
service:
|
2017-06-01 13:52:44 -03:00
|
|
|
name: "{{ slurmdbd_service_name }}"
|
2016-04-05 18:35:18 -03:00
|
|
|
enabled: yes
|
|
|
|
state: started
|
2019-01-29 22:26:21 -04:00
|
|
|
when: "'slurmdbdservers' in group_names or 'dbd' in slurm_roles"
|
2016-04-05 18:35:18 -03:00
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Ensure slurmctld is enabled and running
|
2016-04-05 18:35:18 -03:00
|
|
|
service:
|
|
|
|
name: "{{ slurmctld_service_name }}"
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2019-01-26 16:47:07 -04:00
|
|
|
when: "'slurmservers' in group_names or 'controller' in slurm_roles"
|
2016-04-05 18:35:18 -03:00
|
|
|
|
2019-01-29 22:26:21 -04:00
|
|
|
- name: Ensure slurmd is enabled and running
|
2016-04-05 18:35:18 -03:00
|
|
|
service:
|
2017-06-01 13:52:44 -03:00
|
|
|
name: "{{ slurmd_service_name }}"
|
2016-04-05 18:35:18 -03:00
|
|
|
enabled: yes
|
|
|
|
state: started
|
2019-01-26 16:47:07 -04:00
|
|
|
when: "'slurmexechosts' in group_names or 'exec' in slurm_roles"
|