Skip to content

Commit 35e685a

Browse files
committed
orahost_meta: Added default for oracle_install_option_gi to limit dependency to other roles
1 parent a638b38 commit 35e685a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- "orahost_meta: Added default for oracle_install_option_gi to limit dependency to other roles ()"

roles/orahost_meta/tasks/assert_cluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
block:
77
- name: assert orasw_meta_cluster_hostgroup (GI enabled)
88
when:
9-
- oracle_install_option_gi == 'CRS_CONFIG'
9+
- oracle_install_option_gi | default('') == 'CRS_CONFIG'
1010
block:
1111
- name: assert orasw_meta_cluster_hostgroup
1212
ansible.builtin.assert:

roles/orahost_meta/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ansible.builtin.set_fact:
1010
_orasw_meta_primary_node: true
1111
when:
12-
- oracle_install_option_gi != 'CRS_CONFIG'
12+
- oracle_install_option_gi | default('') != 'CRS_CONFIG'
1313

1414
# RAC:
1515
# 1st Node:
@@ -20,7 +20,7 @@
2020
ansible.builtin.set_fact:
2121
_orasw_meta_primary_node: "{{ groups[orasw_meta_cluster_hostgroup][0] == inventory_hostname }}"
2222
when:
23-
- oracle_install_option_gi == 'CRS_CONFIG'
23+
- oracle_install_option_gi | default('') == 'CRS_CONFIG'
2424

2525
### Determine kernel.panic according to Doc ID 2821641.1
2626
# kdump state cannot savely be retrieved from service_facts

0 commit comments

Comments
 (0)