14 lines
738 B
Bash
14 lines
738 B
Bash
#!/bin/sh
|
|
# ───────────────────────────────────────────────────────────
|
|
# Entrypoint: web UI by default, ansible-playbook if arguments given
|
|
#
|
|
# docker run -p 8080:8080 ansible-node → web UI
|
|
# docker run ansible-node site.yml -i inventory → ansible-playbook
|
|
# ───────────────────────────────────────────────────────────
|
|
if [ $# -eq 0 ]; then
|
|
echo "Starting web UI on http://0.0.0.0:8080"
|
|
exec python3 /usr/local/bin/container-webui.py
|
|
else
|
|
exec ansible-playbook "$@"
|
|
fi
|