Skip to content

Commit 4695dfc

Browse files
committed
revert slurm playbook changes
1 parent 4127848 commit 4695dfc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

ansible/slurm.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
- name: Setup DB
44
hosts: mysql
55
become: true
6-
tags: mysql
6+
tags:
7+
- mysql
78
tasks:
89
- include_role:
910
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
@@ -20,9 +20,12 @@
2020
name: rebuild
2121

2222
- name: Set locked memory limits on user-facing nodes
23-
hosts: compute:login:!builder
23+
hosts:
24+
- compute
25+
- login
2426
become: yes
25-
tags: openhpc
27+
tags:
28+
- openhpc
2629
tasks:
2730
- name: set memory limits
2831
lineinfile:
@@ -31,7 +34,7 @@
3134
line: "* soft memlock unlimited"
3235

3336
- name: Block ssh to compute nodes for non-privileged users without running jobs
34-
hosts: compute:!builder
37+
hosts: compute
3538
become: yes
3639
tags:
3740
- openhpc
@@ -54,15 +57,12 @@
5457
- name: Setup slurm
5558
hosts: openhpc
5659
become: yes
57-
tags: openhpc
60+
tags:
61+
- openhpc
5862
tasks:
5963
- include_role:
6064
name: stackhpc.openhpc
61-
tasks_from: "{{ _openhpc_task_file[appliances_mode] | default('main.yml') }}"
62-
vars:
63-
_openhpc_task_file:
64-
build: install.yml
65-
configure: runtime.yml
65+
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'main.yml' }}"
6666

6767
- name: Setup Node Health Checks
6868
# Has to be done here as it requires openhpc repos etc for installation

0 commit comments

Comments
 (0)