#!/usr/bin/env zsh [[ -f ./lib.sh ]] && source ./lib.sh || exit 1 for os in ${OSBUILDS[@]} do if ! podman container exists ${IMAGE}:${os} then podman run --rm -it -d --platform linux/amd64 --name ${IMAGE}:${os} -p 2222:22 packagetest fi ansible-playbook test_not_local.yml -i inventory.yml if [ $? -eq 0 ] then podman stop ${IMAGE}:${os} ssh-keygen -R "[127.0.0.1]:2222" fi done