Skip to content

Commit b493571

Browse files
committed
ol8 updates
1 parent 0c010d8 commit b493571

File tree

4 files changed

+33
-52
lines changed

4 files changed

+33
-52
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
- block:
3+
- name: include common tasks
4+
include_tasks: common.yml
5+
vars:
6+
slurm_repos: "epel,ol7_developer_EPEL"
7+
when: (not destroy|bool) and ((initial|bool) or (not initial|bool and ('compute' in group_names)))
8+
9+
- name: run server directives ol7 bastion
10+
include_tasks: server.yml
11+
vars:
12+
slurm_repos: "epel,ol7_developer_EPEL"
13+
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool)
14+
when: ansible_distribution_major_version == '7'
15+
16+
- block:
17+
- name: include common tasks
18+
include_tasks: common.yml
19+
vars:
20+
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
21+
when: (not destroy|bool) and ((initial|bool) or (not initial|bool and ('compute' in group_names)))
22+
23+
24+
- name: run server directives ol8 bastion
25+
include_tasks: server.yml
26+
vars:
27+
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
28+
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool)
29+
30+
when: ansible_distribution_major_version == '8'

playbooks/roles/slurm/tasks/el7.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
---
2-
#- name: download slurm Packages
3-
# include_tasks: download.yml
4-
# when: ('bastion' in group_names) and (not destroy|bool) and (initial|bool) and (cluster_nfs|bool)
5-
6-
#- name: download slurm Packages
7-
# include_tasks: download.yml
8-
# when: (not destroy|bool) and (not cluster_nfs|bool)
9-
10-
- name: include common tasks
11-
vars:
12-
slurm_repos: "epel,ol7_developer_EPEL"
13-
include_tasks: common.yml
14-
when: (not destroy|bool) and ((initial|bool) or (not initial|bool and ('compute' in group_names)))
15-
16-
- name: run server directives ol8 bastion
17-
vars:
18-
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
19-
include_tasks: server.yml
20-
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool) and ansible_distribution_major_version == '8'
21-
22-
- name: run server directives ol7 bastion
23-
vars:
24-
slurm_repos: "epel,ol7_developer_EPEL"
25-
include_tasks: server.yml
26-
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool) and ansible_distribution_major_version == '7'
27-
282
- name: run compute directives
293
vars:
304
slurm_repos: "epel,ol7_developer_EPEL"

playbooks/roles/slurm/tasks/el8.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
---
2-
#- name: download slurm Packages
3-
# include_tasks: download.yml
4-
# when: ('bastion' in group_names) and (not destroy|bool) and (initial|bool) and (cluster_nfs|bool)
5-
6-
#- name: download slurm Packages
7-
# include_tasks: download.yml
8-
# when: (not destroy|bool) and (not cluster_nfs|bool)
9-
10-
- name: include common tasks
11-
vars:
12-
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
13-
include_tasks: common.yml
14-
when: (not destroy|bool) and ((initial|bool) or (not initial|bool and ('compute' in group_names)))
15-
16-
- name: run server directives ol7 bastion
17-
vars:
18-
slurm_repos: "epel,ol7_developer_EPEL"
19-
include_tasks: server.yml
20-
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool) and ansible_distribution_major_version == '7'
21-
22-
- name: run server directives ol8 bastion
23-
vars:
24-
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
25-
include_tasks: server.yml
26-
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool) and ansible_distribution_major_version == '8'
27-
282
- name: run compute directives
293
vars:
304
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"

playbooks/roles/slurm/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- include_vars: ubuntu_vars.yml
88
when: ansible_distribution == 'Ubuntu'
99

10+
- include: bastion.yml
11+
when: ansible_os_family == 'RedHat' and ansible_distribution == 'OracleLinux'
12+
1013
- include: el7.yml
1114
when: ansible_os_family == 'RedHat' and ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '7'
1215

0 commit comments

Comments
 (0)