From ad22ac08ad1979c9159cf30cdcd259b24ae7a94d Mon Sep 17 00:00:00 2001 From: ranbeersingh1 Date: Mon, 9 Oct 2023 16:14:32 +0100 Subject: [PATCH] Database and ASM version component does not contain dot --- .../oneoffpatch/tasks/set-oracle-paths.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/roles/oracle-db-patches/oneoffpatch/tasks/set-oracle-paths.yml b/ansible/roles/oracle-db-patches/oneoffpatch/tasks/set-oracle-paths.yml index ccc0e0a40..434c70e84 100644 --- a/ansible/roles/oracle-db-patches/oneoffpatch/tasks/set-oracle-paths.yml +++ b/ansible/roles/oracle-db-patches/oneoffpatch/tasks/set-oracle-paths.yml @@ -11,7 +11,8 @@ - name: Set ASM Path Version Component set_fact: - asm_version_component: "{{ get_asmpath.stdout_lines[-1] | regex_replace('.*/([\\d\\.]+)/.*','\\1') }}" + #asm_version_component: "{{ get_asmpath.stdout_lines[-1] | regex_replace('.*/([\\d\\.]+)/.*','\\1') }}" + asm_version_component: "{{ get_asmpath.stdout_lines[-1].split(':')[1].split('/')[-2] }}" - name: Get Database Path from OraTab shell: | @@ -21,7 +22,8 @@ - name: Set Database Path Version Component set_fact: - database_version_component: "{{ get_databasepath.stdout_lines[-1] | regex_replace('.*/([\\d\\.]+)/.*','\\1') }}" + #database_version_component: "{{ get_databasepath.stdout_lines[-1] | regex_replace('.*/([\\d\\.]+)/.*','\\1') }}" + database_version_component: "{{ get_databasepath.stdout_lines[-1].split(':')[1].split('/')[-2] }}" # Copy the oracle_vars_dir directory to standby host - name: Copy oracle_vars_dir directory from localhost to standby host