Skip to content

Commit 9b1b2cf

Browse files
author
Kimmo Forss
committed
Enhance duplication status display in Oracle Data Guard task and remove redundant debug message
1 parent 14dff70 commit 9b1b2cf

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

deploy/ansible/roles-db/4.1.3-oracle-data-guard/tasks/03-duplicate-database.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
- rman_duplicate.stdout is defined
269269
- not rman_duplicate.stdout is search("Finished Duplicate Db")
270270

271+
271272
- name: "4.1.3 Oracle Data Guard - Duplicate - Check standby database mounted"
272273
become_user: "{{ oracle_user_name }}"
273274
become: true
@@ -291,11 +292,6 @@
291292
ansible.builtin.set_fact:
292293
secondary_duplicated: "{{ 'PHYSICAL STANDBY:MOUNTED' in db_status.stdout or 'PHYSICAL STANDBY:READ ONLY' in db_status.stdout }}"
293294

294-
- name: "4.1.3 Oracle Data Guard - Duplicate - Display duplication status"
295-
ansible.builtin.debug:
296-
msg:
297-
- "Database instance: {{ ansible_hostname }}"
298-
- "Database duplicated: {{ secondary_duplicated }}"
299295

300296
- name: "4.1.3 Oracle Data Guard - Start Instance - Show SPFile location"
301297
become_user: "{{ oracle_user_name }}"
@@ -311,9 +307,13 @@
311307
args:
312308
chdir: "/etc/sap_deployment_automation/dataguard_scripts/"
313309

314-
- name: "4.1.3 Oracle Data Guard - Duplicate - Show SPFile location"
310+
- name: "4.1.3 Oracle Data Guard - Duplicate - Display duplication status"
315311
ansible.builtin.debug:
316-
msg: "SPFile location: {{ pfile_location.stdout }}"
312+
msg:
313+
- "RMAN DUPLICATE ran successfully."
314+
- "Database instance: {{ ansible_hostname }}"
315+
- "Database duplicated: {{ secondary_duplicated }}"
316+
- "SPFile location: {{ pfile_location.stdout }}"
317317

318318
- name: "4.1.3 Oracle Data Guard - Duplicate - Create standby initialization file"
319319
when: node_tier == "oracle-asm"

0 commit comments

Comments
 (0)