forked from oravirt/ansible-oracle
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oraswdb_manage_patches: added parameter oraswdb_manage_patches_force_…
…opatch_upgrade for applyRU in runInstaller
- Loading branch information
Showing
5 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- "oraswdb_manage_patches: added parameter oraswdb_manage_patches_force_opatch_upgrade for applyRU in runInstaller (oravirt#469)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
roles/oraswdb_manage_patches/tasks/copy_patches_for_dbh.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# copy Patches to target server for oracle_homes_installed | ||
# Used in oraswdb_install for copy patches to prepatch runInstaller with -applyRU | ||
|
||
# dhc_opatch is needed as an input for this task-file! | ||
- name: copy_patches_for_dbh | Assert | ||
ansible.builtin.assert: | ||
quiet: true | ||
that: | ||
- dhc_opatch is defined | ||
|
||
- name: copy_patches_for_dbh | Work on oracle_sw_patches | ||
ansible.builtin.include_tasks: loop_opatch_apply.yml | ||
vars: | ||
__sw_patches_filename_creates: "{{ osp_loop.creates | default((dhc_opatch.patchid | string) + '/README.txt') }}" | ||
__patch_unarchive_dir: "{{ oracle_patch_stage }}/{{ db_version }}/{{ __patch_upisubdir }}/" | ||
__patch_upisubdir: >- | ||
{{ osp_loop.unique_patchid is defined | ||
| ternary(osp_loop.unique_patchid, | ||
osp_loop.patchid) }}/ | ||
with_items: | ||
- "{{ oracle_sw_patches | selectattr('patchid', 'equalto', dhc_opatch.patchid) }}" | ||
loop_control: | ||
loop_var: osp_loop | ||
label: >- | ||
patchid: {{ osp_loop.patchid }} | ||
filename: {{ osp_loop.filename }} | ||
unique_patchid: {{ osp_loop.unique_patchid | default('') }} | ||
when: | ||
- apply_patches_db | ||
- dhc_opatch.state == 'present' | ||
- osp_loop.unique_patchid | default(0) == dhc_opatch.excludeUPI | default(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters