Skip to content

Commit

Permalink
Merge pull request #444 from ministryofjustice/DBA-584
Browse files Browse the repository at this point in the history
Tag always
  • Loading branch information
ranbeersingh1 authored Dec 8, 2023
2 parents 534bb48 + 78a0a03 commit 2ca44e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/oracle-db-bootstrap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
awk -F= '/inventory_loc/{print $2}' /etc/oraInst.loc
register: get_ora_inventory
changed_when: false
tags: always

# Using the inventory we distinguish between Grid and Database Homes depending on whether the grep flag -v
# has been used to include or exclude the attribute 'CRS=true' respectively in the inventory XML file
Expand All @@ -34,13 +35,16 @@
loop_control:
loop_var: grep_exclude
changed_when: false
tags: always

- set_fact:
oracle_database_oracle_home: "{{ ( get_oracle_homes.results | selectattr('grep_exclude','equalto','-v') | first ).stdout | trim }}"
oracle_grid_oracle_home: "{{ ( get_oracle_homes.results | selectattr('grep_exclude','equalto','') | first ).stdout | trim }}"
tags: always

- debug:
msg: "Grid Home: {{ oracle_grid_oracle_home }}; Database Home {{ oracle_database_oracle_home }}"
tags: always

- block:
- name: (main) Find db version file
Expand Down

0 comments on commit 2ca44e8

Please sign in to comment.