Skip to content

Commit 0ba99f1

Browse files
author
Kimmo Forss
committed
Fix logging of primary instance open mode and update restart conditions in Oracle Data Guard validation
1 parent 03bc368 commit 0ba99f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy/ansible/roles-db/4.1.3-oracle-data-guard/tasks/00-validate-primary.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@
6464
- "Database instance: {{ ansible_hostname }}"
6565
- "Primary mounted status: {{ primary_mounted or primary_open }}"
6666
- "Primary open status: {{ primary_open }}"
67-
- "Primary instance open_mode: {{ dg_status.stdout }}"
6867
- "Primary instance needs mounting: {{ needs_mounting }}"
68+
- "Primary instance open_mode: {{ dg_status.stdout }}"
6969

7070
- name: "4.1.3 Oracle Data Guard - Restart Primary instance"
7171
when:
7272
- not primary_mounted
7373
- not primary_open
74-
- not needs_mounting or primary_exclusive
74+
- needs_mounting or primary_exclusive
7575
block:
7676
- name: "4.1.3 Oracle Data Guard: - Restart Primary instance"
7777
ansible.builtin.include_tasks: "00-restart-instance.yaml"

0 commit comments

Comments
 (0)