-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.yml
More file actions
42 lines (36 loc) · 1.29 KB
/
main.yml
File metadata and controls
42 lines (36 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
# tasks file for ansible_role_slurm
- name: Enable epel
ansible.builtin.dnf:
name:
- epel-release
state: present
- name: Build slurm
ansible.builtin.import_tasks: 'build.yml'
when: slurm_build_rpm and ('build_host' in slurm_host_roles)
tags: build_slurm
- name: Create slurm repo
ansible.builtin.import_tasks: 'createrepo.yml'
when: slurm_build_rpm and slurm_createrepo and ('repo_host' in slurm_host_roles)
tags: build_slurm
- name: Install slurm
ansible.builtin.import_tasks: 'install.yml'
when: ('submit' in slurm_host_roles) or
('compute' in slurm_host_roles) or
('slurmdbd' in slurm_host_roles) or
('slurmctld' in slurm_host_roles) or
('slurmrestd' in slurm_host_roles)
- name: Configure slurm
ansible.builtin.import_tasks: 'configure.yml'
when: ('submit' in slurm_host_roles) or
('compute' in slurm_host_roles) or
('slurmdbd' in slurm_host_roles) or
('slurmctld' in slurm_host_roles) or
('slurmrestd' in slurm_host_roles)
- name: Enable services
ansible.builtin.import_tasks: 'services.yml'
when: ('submit' in slurm_host_roles) or
('compute' in slurm_host_roles) or
('slurmdbd' in slurm_host_roles) or
('slurmctld' in slurm_host_roles) or
('slurmrestd' in slurm_host_roles)