Skip to content

Commit 0c010d8

Browse files
committed
ol8 updates
1 parent a0f4068 commit 0c010d8

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

playbooks/roles/slurm/tasks/el7.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@
1313
include_tasks: common.yml
1414
when: (not destroy|bool) and ((initial|bool) or (not initial|bool and ('compute' in group_names)))
1515

16-
- name: run server directives
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
1723
vars:
1824
slurm_repos: "epel,ol7_developer_EPEL"
1925
include_tasks: server.yml
20-
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool)
26+
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool) and ansible_distribution_major_version == '7'
2127

2228
- name: run compute directives
2329
vars:

playbooks/roles/slurm/tasks/el8.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@
1313
include_tasks: common.yml
1414
when: (not destroy|bool) and ((initial|bool) or (not initial|bool and ('compute' in group_names)))
1515

16-
- name: run server directives
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
1723
vars:
1824
slurm_repos: "ol8_developer_EPEL,ol8_codeready_builder"
1925
include_tasks: server.yml
20-
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool)
26+
when: ('bastion' in group_names) and (not destroy|bool) and (initial| bool) and ansible_distribution_major_version == '8'
2127

2228
- name: run compute directives
2329
vars:

0 commit comments

Comments
 (0)