File tree Expand file tree Collapse file tree 4 files changed +31
-40
lines changed
playbooks/roles/slurm/tasks Expand file tree Collapse file tree 4 files changed +31
-40
lines changed Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments