--- - name: Ensure that source_image is defined assert: that: - source_image is defined - source_image | length > 0 - name: Ensure that container_build_tool is correctly set fail: msg="{{ container_build_tool }} is not a valid value for container_build_tool. Pick docker or buildah." when: container_build_tool not in ['docker', 'buildah'] - name: Set default modified_append_tag set_fact: modified_append_tag: "{{ lookup('pipe','date +-modified-%Y%m%d%H%M%S') }}" when: modified_append_tag is undefined