Update README.md — container web UI with JSON/MD/PDF export
This commit is contained in:
@@ -643,10 +643,24 @@ container, shell into the Docker host, shutdown VM. All test options run
|
|||||||
|
|
||||||
### `webui/app.py`
|
### `webui/app.py`
|
||||||
|
|
||||||
Minimal web dashboard (Python 3 stdlib only, zero dependencies). Serves on
|
Minimal web dashboard for the **Alpine Docker Host VM**. Python 3 stdlib only,
|
||||||
port 8080. Features: dark-themed UI with run buttons per playbook, async output
|
zero dependencies. Serves on port 8080. Features: dark-themed UI with run buttons
|
||||||
streaming via `fetch`, JSON report downloads. Handles `POST /api/run` to execute
|
per playbook, async output streaming, JSON report downloads. Runs playbooks
|
||||||
playbooks via `docker run` and `GET /reports/<name>` for file downloads.
|
via `docker run ansible-node`.
|
||||||
|
|
||||||
|
### `webui/container-app.py`
|
||||||
|
|
||||||
|
Web dashboard for the **Ansible container** itself. Serves on port 8080. Features:
|
||||||
|
dark-themed UI, run buttons, async output, **JSON / Markdown / PDF export**.
|
||||||
|
PDF generation via `fpdf2` (pure Python, zero system deps). Markdown via bundled
|
||||||
|
`render_report.py`. Started automatically when the container runs with no arguments.
|
||||||
|
|
||||||
|
### `scripts/entrypoint.sh`
|
||||||
|
|
||||||
|
Container entrypoint. If invoked with no arguments, starts the web UI
|
||||||
|
(`container-app.py`). If arguments are given, passes them directly to
|
||||||
|
`ansible-playbook`. Enables both `docker run -p 8080:8080 ansible-node` and
|
||||||
|
`docker run ansible-node site.yml`.
|
||||||
|
|
||||||
### `inventory.ini`
|
### `inventory.ini`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user