Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orasw_download_patches: Download OPatch for GI/Restart #415

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/orasw_download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- "orasw_download_patches: Download OPatch for GI/Restart (oravirt#415)"
15 changes: 14 additions & 1 deletion roles/orasw_download_patches/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@
loop_control:
label: "{{ item.home }}: {{ opatch.filename | d('cannot find oracle_opatch_patch entry for ' + db_version, true) }}"

- name: Prepare OPatch patch for GI/Restart
vars:
opatch:
patchid: 6880880
filename: "{{ oracle_opatch_patch | selectattr('version', 'equalto', oracle_install_version_gi) | map(attribute='filename') | join }}"
description: "Current OPatch for {{ oracle_install_version_gi }}"
ansible.builtin.set_fact:
opatchinfo: "{{ opatchinfo + [opatch] }}"
when:
- oracle_install_option_gi is defined
- oracle_install_option_gi in ('CRS_CONFIG', 'HA_CONFIG')
- oracle_install_version_gi is defined

- name: Get ARU and URL
vars:
url: "https://updates.oracle.com/Orion/SimpleSearch/process_form?search_type=patch&plat_lang={{ oracle_plat_lang }}&patch_number={{ item.patchid }}"
Expand All @@ -82,7 +95,7 @@
use_proxy: "{{ use_proxy }}"
environment: "{{ proxy_env }}"
with_items:
- "{{ opatchinfo }}"
- "{{ opatchinfo | unique }}"
- "{{ oracle_sw_patches }}"
failed_when: "aru == 'missing' or password_required"
loop_control:
Expand Down
Loading