Skip to content

Commit c1fcda0

Browse files
committed
Use assert and reformat msg
1 parent b765bb6 commit c1fcda0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roles/os_images/tasks/prechecks.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
register: result
99

1010
- name: Display warning message about the container engine
11-
ansible.builtin.debug:
12-
msg: "Container runtime engine is not installed. Elements that require it will fail when building."
13-
when: result.rc != 0
11+
ansible.builtin.assert:
12+
that:
13+
- result.rc = 0
14+
fail_msg: >
15+
Container runtime engine could not be found - make sure it is installed.
16+
Elements that depend on it will likely fail when building.

0 commit comments

Comments
 (0)