14 lines
319 B
Bash
Executable File
14 lines
319 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
set -x
|
|
|
|
[[ -f ./lib.sh ]] && source ./lib.sh || exit 1
|
|
|
|
for os in ${OSBUILDS[@]}
|
|
do
|
|
if ! podman container exists ${CONTAINER}_${os}; then
|
|
podman run --rm -it -d --platform linux/amd64 --name ${CONTAINER}_${os} -p 2222:22 ${IMAGE}:${os}
|
|
fi
|
|
ansible-playbook "test.yml" -i inventory.yml
|
|
done
|