Skip to content

Commit 80e3453

Browse files
committed
Clean up
1 parent 395ad2b commit 80e3453

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

oraasm-createdg/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
with_items: asm_diskgroups
2727
sudo: yes
2828
sudo_user: "{{ grid_install_user }}"
29-
when: master_node and oracle_install_version_gi == "11.2.0.4"
29+
when: master_node and '11.2' in oracle_install_version_gi
3030
tags: srvctlasm
3131
register: srvctlasm
3232

@@ -35,7 +35,7 @@
3535
with_items: asm_diskgroups
3636
sudo: yes
3737
sudo_user: "{{ grid_install_user }}"
38-
when: master_node and oracle_install_version_gi != "11.2.0.4"
38+
when: master_node and '12.1' in oracle_install_version_gi
3939
tags: srvctlasm
4040
register: srvctlasm
4141

oraswgi-install/tasks/main.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,6 @@
120120
when: master_node and checkgiinstall.stdout != "1" #and oracle_sw_unpack
121121
register: giinstall
122122

123-
# - name: Install Grid Infrastructure
124-
# shell: "{{ oracle_stage }}/{{ oracle_install_version_gi }}/grid/runInstaller -responseFile {{ oracle_rsp_stage }}/{{ oracle_grid_responsefile }} -waitforcompletion -ignorePrereq -ignoreSysPrereqs -showProgress -silent"
125-
# sudo: yes
126-
# sudo_user: "{{ grid_install_user }}"
127-
# tags:
128-
# - oragridinstall
129-
# when: master_node and checkgiinstall.stdout != "1" not and oracle_sw_unpack
130-
# register: giinstall
131-
132123
- debug: var=giinstall.stdout_lines
133124
when: master_node and checkgiinstall.stdout != "1"
134125

@@ -177,16 +168,6 @@
177168
ignore_errors: true
178169
register: configtool
179170

180-
# - name: Run configToolAllCommands (v11.2)
181-
# shell: "{{ oracle_home_gi }}/cfgtoollogs/configToolAllCommands RESPONSE_FILE={{ oracle_rsp_stage }}/configtoolallcommands.rsp"
182-
# sudo: yes
183-
# sudo_user: "{{ grid_install_user }}"
184-
# tags:
185-
# - runconfigtool
186-
# when: master_node and run_configtoolallcommand and '11.2' in oracle_install_version_gi and checkgiinstall.stdout != "1"
187-
# ignore_errors: true
188-
# register: configtool
189-
190171
- name: Check if stuff is running
191172
shell: "{{ oracle_home_gi }}/bin/crsctl stat res -t"
192173
tags:
@@ -238,14 +219,14 @@
238219
shell: "{{ oracle_home_gi }}/bin/olsnodes -a -n -s -t"
239220
sudo: yes
240221
sudo_user: "{{ grid_install_user }}"
241-
when: oracle_gi_cluster_type |upper == 'FLEX'
222+
when: oracle_gi_cluster_type |upper == 'FLEX' and '12.1' in oracle_install_version_gi
242223
register: olsnodes
243224
tags:
244225
- olsnodes
245226

246227
- name: Check olsnodes (GI)
247228
debug: var=olsnodes.stdout_lines
248-
when: oracle_gi_cluster_type|upper == 'FLEX'
229+
when: oracle_gi_cluster_type|upper == 'FLEX' and '12.1' in oracle_install_version_gi
249230
tags:
250231
- olsnodes
251232

0 commit comments

Comments
 (0)