Skip to content

Commit

Permalink
osp_loop is dict, not list
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Solbrig authored and Rendanic committed Apr 26, 2024
1 parent 079517d commit d7b26c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions roles/oraswgi_manage_patches/tasks/loop_patchid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
- name: Work on oracle_sw_patches
ansible.builtin.include_tasks: loop_stage_patch.yml
vars:
__sw_patches_filename_creates: "{{ osp_loop.0.creates | default((gip_opatch.0.patchid | string) + '/README.txt') }}"
__patch_unarchive_dir: "{{ oracle_patch_stage }}/{{ db_version }}/{{ __patch_upisubdir }}/"
__sw_patches_filename_creates: "{{ osp_loop.creates | default((gip_opatch.0.patchid | string) + '/README.txt') }}"
__patch_unarchive_dir: "{{ oracle_patch_stage }}/{{ oracle_install_version_gi }}/{{ __patch_upisubdir }}/"
__patch_upisubdir: >-
{%- if osp_loop.0.unique_patchid is defined -%}
upi_{{ osp_loop.0.unique_patchid -}}/{% endif -%}
{%- if osp_loop.unique_patchid is defined -%}
upi_{{ osp_loop.unique_patchid -}}/{% endif -%}
with_items:
- "{{ oracle_sw_patches | selectattr('patchid', 'equalto', gip_opatch.0.patchid) }}"
loop_control:
loop_var: osp_loop
label: >-
patchid: {{ osp_loop.0.patchid }}
filename: {{ osp_loop.0.filename }}
unique_patchid: {{ osp_loop.0.unique_patchid | default('') }}
patchid: {{ osp_loop.patchid }}
filename: {{ osp_loop.filename }}
unique_patchid: {{ osp_loop.unique_patchid | default('') }}
when:
- apply_patches_db
- gip_opatch.0.state == 'present'
Expand Down

0 comments on commit d7b26c9

Please sign in to comment.