ansible/test-docker.sh

5 lines
215 B
Bash
Raw Normal View History

#!/bin/sh
[ "$1" == "stop" ] && docker kill ansible && exit 0
docker run --rm --name ansible -id alpine
[ $? == 0 ] && docker exec ansible /bin/sh -c "apk update && apk add python3"
ansible -i docker.ini all -m ping