Skip to content

Commit

Permalink
Database and ASM version component does not contain dot
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbeersingh1 committed Oct 9, 2023
1 parent 085f630 commit ad22ac0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit ad22ac0

Please sign in to comment.