-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslurm_update_config.yml
59 lines (42 loc) · 1.02 KB
/
slurm_update_config.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- hosts: slurmhead, small, medium, large, huge
become: true
tags:
- slurmconfig
vars_files:
- group_vars/system.yml
- secret_group_vars/system.vault
tasks:
- name: mount nfs points
include: tasks/nfs.yml
tags: "nfs"
- name: Create users and groups
include: tasks/users_groups.yml
tags: 'users'
- name: configure autofs
include: tasks/autofs.yml
tags: autofs
- name: Update slurm config
include: tasks/slurm_config.yml
# this is needed otherwise not all information will be available for creating the slurm config for the controller.
- hosts: small, medium, large, huge
become: true
tags:
- nodes
tasks:
- name: restart slurmd
systemd:
name: slurmd
enabled: true
state: restarted
- hosts: slurmhead
become: true
tags:
- head
vars_files:
- group_vars/system.yml
tasks:
- name: restart slurmctld
systemd:
name: slurmctld
enabled: true
state: restarted