Skip to content

Commit b5b8a67

Browse files
Merge pull request #135 from oci-hpc/2.10.3_an_ol8_munge_fix
2.10.3 an ol8 munge fix
2 parents a0f4068 + 2c2fdf8 commit b5b8a67

File tree

4 files changed

+31
-40
lines changed

4 files changed

+31
-40
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
- name: run server directives ol8 bastion
24+
include_tasks: server.yml
25+
vars:
26+
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
27+
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool)
28+
when: ansible_distribution_major_version == '8'

playbooks/roles/slurm/tasks/el7.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +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
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)
21-
222
- name: run compute directives
233
vars:
244
slurm_repos: "epel,ol7_developer_EPEL"

playbooks/roles/slurm/tasks/el8.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +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
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)
21-
222
- name: run compute directives
233
vars:
244
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)