Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Commit 4b77be4

Browse files
Named fail tasks
1 parent 42a8da8 commit 4b77be4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tasks/pre_checks.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
path: "{{ oracle_stage_install }}/{{ psu[oracle_version][psu_name][oracle_install_type].filename }}"
1515
register: psu_st
1616

17-
- fail: msg="Oops! The PSU zip file is missing."
17+
- name: Fail if PSU file is missing
18+
fail: msg="Oops! The PSU zip file is missing."
1819
when: not psu_st.stat.exists
1920

2021

@@ -25,7 +26,8 @@
2526
with_items: oneoff_patches[oracle_version]|default([])
2627
when: oneoff_patches[oracle_version] is defined
2728

28-
- fail: msg="Oops! Missing one-off patch {{ item.item.filename }}"
29+
- name: Fail if missing one-off patches
30+
fail: msg="Oops! Missing one-off patch {{ item.item.filename }}"
2931
with_items: patch_st.results
3032
when:
3133
- oneoff_patches[oracle_version] is defined
@@ -38,7 +40,8 @@
3840
with_items: oneoff_patches[ psu[oracle_version][psu_name].patchversion ]|default([])
3941
when: oneoff_patches[ psu[oracle_version][psu_name].patchversion ] is defined
4042

41-
- fail: msg="Oops! Missing one-off patch {{ item.item.filename }}"
43+
- name: Fail if missing PSU-Specific one-off patches
44+
fail: msg="Oops! Missing one-off patch {{ item.item.filename }}"
4245
with_items: patch_st.results
4346
when:
4447
- oneoff_patches[ psu[oracle_version][psu_name].patchversion ] is defined
@@ -49,6 +52,6 @@
4952
path: "{{ oracle_stage_install }}/{{ opatch[oracle_version].filename }}"
5053
register: opatch_st
5154

52-
- fail: msg="Oops! Opatch zip file is missing."
55+
- name: Fail if Opatch zip file is missing
56+
fail: msg="Oops! Opatch zip file is missing."
5357
when: not opatch_st.stat.exists
54-

0 commit comments

Comments
 (0)