Skip to content

Commit

Permalink
replace dhc_opatch by osp_loop, probably a c/p error
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Solbrig committed Apr 19, 2024
1 parent 3920a84 commit 5519d95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions roles/oraswgi_manage_patches/tasks/loop_stage_patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ansible.builtin.debug:
msg:
- >-
patchid: {{ dhc_opatch.patchid | default('') }}
patchid: {{ osp_loop.patchid | default('') }}
unique_patchid: {{ osp_loop.unique_patchid | default('') }}
- >-
oracle_patch_stage: {{ oracle_patch_stage }}
Expand All @@ -24,17 +24,17 @@
- name: Loop_stage_patch | Copy oracle DB patch (opatch) to server
when:
- oracle_sw_copy | bool
- dhc_opatch.state == 'present'
- osp_loop.state == 'present'
block:

- name: Loop_stage_patch | Check for unarchived patch archive
ansible.builtin.stat:
path: "{{ __patch_unarchive_dir }}/{{ __sw_patches_filename_creates }}"
register: checkpatcharchiveres
vars:
__sw_patches_filename_creates: "{{ osp_loop.creates | default((dhc_opatch.patchid | string) + '/README.txt') }}"
__sw_patches_filename_creates: "{{ osp_loop.creates | default((osp_loop.patchid | string) + '/README.txt') }}"

- name: Loop_stage_patch | Copy oracle DB patch (opatch) to server (local)
- name: Loop_stage_patch | Copy oracle GI patch (opatch) to server (local)
ansible.builtin.copy:
src: "{{ oracle_sw_source_local }}/{{ osp_loop.filename }}"
dest: "{{ oracle_stage }}/{{ osp_loop.filename }}"
Expand All @@ -44,7 +44,7 @@
- is_sw_source_local | bool
- not checkpatcharchiveres.stat.exists

- name: Loop_stage_patch | Copy oracle DB patch (opatch) to server (www)
- name: Loop_stage_patch | Copy oracle GI patch (opatch) to server (www)
ansible.builtin.get_url:
url: "{{ oracle_sw_source_www }}/{{ osp_loop.filename }}"
dest: "{{ oracle_stage }}/{{ osp_loop.filename }}"
Expand All @@ -58,7 +58,7 @@
when:
- oracle_sw_copy | bool
- oracle_sw_unpack | bool
- dhc_opatch.state == 'present'
- osp_loop.state == 'present'
tags:
- oraswdbpsuunpack1
block:
Expand Down

0 comments on commit 5519d95

Please sign in to comment.