File tree Expand file tree Collapse file tree 2 files changed +9
-26
lines changed Expand file tree Collapse file tree 2 files changed +9
-26
lines changed Original file line number Diff line number Diff line change 48
48
when : " 'lustre' in group_names"
49
49
50
50
- import_playbook : extras.yml
51
+ - import_playbook : slurm.yml
51
52
52
53
- hosts : builder
53
54
become : yes
54
55
gather_facts : yes
55
56
tasks :
56
- # - import_playbook: slurm.yml:
57
- - name : Setup DB
58
- include_role :
59
- name : mysql
60
- tasks_from : install.yml
61
- when : " 'mysql' in group_names"
62
-
63
- - name : OpenHPC
64
- import_role :
65
- name : stackhpc.openhpc
66
- tasks_from : install.yml
67
- when : " 'openhpc' in group_names"
68
-
69
57
# - import_playbook: portal.yml
70
58
- name : Open Ondemand server (packages)
71
59
include_role :
Original file line number Diff line number Diff line change 3
3
- name : Setup DB
4
4
hosts : mysql
5
5
become : true
6
- tags :
7
- - mysql
6
+ tags : mysql
8
7
tasks :
9
8
- include_role :
10
9
name : mysql
10
+ tasks_from : " {{ 'install.yml' if appliances_mode == 'build' else 'main.yml' }}"
11
11
12
12
- name : Setup slurm-driven rebuild
13
13
hosts : rebuild:!builder
20
20
name : rebuild
21
21
22
22
- name : Set locked memory limits on user-facing nodes
23
- hosts :
24
- - compute
25
- - login
23
+ hosts : compute:login:!builder
26
24
become : yes
27
- tags :
28
- - openhpc
25
+ tags : openhpc
29
26
tasks :
30
27
- name : set memory limits
31
28
lineinfile :
34
31
line : " * soft memlock unlimited"
35
32
36
33
- name : Block ssh to compute nodes for non-privileged users without running jobs
37
- hosts : compute
34
+ hosts : compute:!builder
38
35
become : yes
39
- tags :
40
- - openhpc
36
+ tags : openhpc
41
37
tasks :
42
38
- name : Configure sshd pam module
43
39
blockinfile :
57
53
- name : Setup slurm
58
54
hosts : openhpc
59
55
become : yes
60
- tags :
61
- - openhpc
56
+ tags : openhpc
62
57
tasks :
63
58
- include_role :
64
59
name : stackhpc.openhpc
65
- tasks_from : " {{ 'runtime .yml' if appliances_mode == ' configure' else 'main.yml' }}"
60
+ tasks_from : " {{ {'install':'install .yml', 'runtime.yml':' configure'}[appliances_mode] | default( 'main.yml') }}"
You can’t perform that action at this time.
0 commit comments