5 lines
215 B
Bash
5 lines
215 B
Bash
|
#!/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
|