Skip to content

Commit 7619f76

Browse files
committed
orasw_download_patches: assert oracle_sw_patches
1 parent 3a3d57b commit 7619f76

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
trivial:
3+
- "orasw_download_patches: assert oracle_sw_patches ()"

roles/orasw_download_patches/tasks/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
- oracle_sw_source_local is defined
1313
quiet: true
1414

15+
- name: Check attributes in oracle_sw_patches
16+
ansible.builtin.assert:
17+
quiet: true
18+
that:
19+
- osp.filename is defined
20+
- osp.patchid is defined
21+
- osp.version is defined
22+
- osp.description is defined
23+
with_items:
24+
- "{{ oracle_sw_patches }}"
25+
loop_control:
26+
loop_var: osp
27+
label: "{{ osp.filename | default('') }}"
28+
1529
- name: Ensure destination directory exists
1630
ansible.builtin.file:
1731
path: "{{ oracle_patch_download_dir }}"

0 commit comments

Comments
 (0)