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

Commit

Permalink
Named fail tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhollenberger committed Jan 13, 2016
1 parent 42a8da8 commit 4b77be4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tasks/pre_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
path: "{{ oracle_stage_install }}/{{ psu[oracle_version][psu_name][oracle_install_type].filename }}"
register: psu_st

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


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

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

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

- fail: msg="Oops! Opatch zip file is missing."
- name: Fail if Opatch zip file is missing
fail: msg="Oops! Opatch zip file is missing."
when: not opatch_st.stat.exists

0 comments on commit 4b77be4

Please sign in to comment.