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 4848 when : " 'lustre' in group_names"
4949
5050- import_playbook : extras.yml
51+ - import_playbook : slurm.yml
5152
5253- hosts : builder
5354 become : yes
5455 gather_facts : yes
5556 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-
6957 # - import_playbook: portal.yml
7058 - name : Open Ondemand server (packages)
7159 include_role :
Original file line number Diff line number Diff line change 33- name : Setup DB
44 hosts : mysql
55 become : true
6- tags :
7- - mysql
6+ tags : mysql
87 tasks :
98 - include_role :
109 name : mysql
10+ tasks_from : " {{ 'install.yml' if appliances_mode == 'build' else 'main.yml' }}"
1111
1212- name : Setup slurm-driven rebuild
1313 hosts : rebuild:!builder
2020 name : rebuild
2121
2222- name : Set locked memory limits on user-facing nodes
23- hosts :
24- - compute
25- - login
23+ hosts : compute:login:!builder
2624 become : yes
27- tags :
28- - openhpc
25+ tags : openhpc
2926 tasks :
3027 - name : set memory limits
3128 lineinfile :
3431 line : " * soft memlock unlimited"
3532
3633- name : Block ssh to compute nodes for non-privileged users without running jobs
37- hosts : compute
34+ hosts : compute:!builder
3835 become : yes
39- tags :
40- - openhpc
36+ tags : openhpc
4137 tasks :
4238 - name : Configure sshd pam module
4339 blockinfile :
5753- name : Setup slurm
5854 hosts : openhpc
5955 become : yes
60- tags :
61- - openhpc
56+ tags : openhpc
6257 tasks :
6358 - include_role :
6459 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