Skip to content

Commit

Permalink
Use assert and reformat msg
Browse files Browse the repository at this point in the history
  • Loading branch information
cityofships committed Oct 29, 2024
1 parent b765bb6 commit c1fcda0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions roles/os_images/tasks/prechecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
register: result

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

0 comments on commit c1fcda0

Please sign in to comment.