We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc65f6 commit 4b1d9d5Copy full SHA for 4b1d9d5
tests/get_unused_disk.yml
@@ -9,11 +9,9 @@
9
unused_disks: "{{ unused_disks_return.disks }}"
10
when: "'Unable to find unused disk' not in unused_disks_return.disks"
11
12
-- block:
13
- - name: Exit playbook when there's not enough unused disks in the system
14
- debug:
15
- msg: "Unable to find enough unused disks. Exiting playbook."
16
- - meta: end_play
+- name: Exit playbook when there's not enough unused disks in the system
+ fail:
+ msg: "Unable to find enough unused disks. Exiting playbook."
17
when: unused_disks is undefined or unused_disks|length < disks_needed|default(1)
18
19
- name: Print unused disks
0 commit comments