Add scripts/entrypoint.sh — container web UI with JSON/MD/PDF export

This commit is contained in:
2026-07-07 18:49:40 +00:00
parent 91932a9da0
commit 2b49992165
+13
View File
@@ -0,0 +1,13 @@
#!/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