Files
infrastructure/llm-server/llm/ansible
spektrandMistral Vibe 3df56d62c4 Phase 1 M6-R1 (Deep Research in OpenWebUI) + Phase 2 M8 geplant (GPT Researcher hinter IAP)
Phase 1 (GNAI-022, umgesetzt 14.11.2026 auf ghostnet-ki):
- Pipe-Function gnai-deep-research (files/gnai-deep-research-pipe.py, sha256-gepinnt):
  iterativer plan->SearXNG->fetch->Synthese-Loop mit [n]-Zitationen, Engine direkt
  via http://llama-cpp:8080/v1, SSRF-Guard, Fetch-Caps, Streaming via event_emitter
- open_webui-Rolle: DB-Seeding (function-Tabelle type=pipe, is_active, public read
  access_grant) + sha256-Verify + PIPE-OK-Verify; Defaults/Valves in defaults/main.yml
- Verifikation: webui.yml produktiver Lauf ok=35 changed=3 failed=0, Health 200,
  zweiter Lauf idempotent changed=0; E2E via API (temp. Key) ist Betreiberschritt (GNAI-022 Abschnitt 5)

Phase 2 (GNAI-023, M8 in GNAI-001): GPT Researcher (30.683 Sterne, v3.8.0) auf
ghostnet-ki im Production-Netz, LLM via OPENAI_BASE_URL=llama.cpp, Suche ueber
bestehende SearXNG; oeffentlich nur research.ghostnet.selfhost.eu via NPM +
oauth2-proxy v7.15.5 (auth_request, Keycloak-OIDC Realm Ghost.net, Client
gnai-research) — Härtungs-Checkliste in GNAI-023 Abschnitt 3/4.

Doku: GNAI-000/GNAI-001/ai-README aktualisiert; GNAI-022 (Deep Research) und
GNAI-023 (IAP-Plan) neu.

Hinweis: roles/open_webui und ai/README enthalten neben diesen Aenderungen den
bislang uncommitteten Theme-Stand (GNAI-021, produktiv live seit 14.11.2026).

Link-Check: nur bekannte GNAI-021-Links broken (Datei fehlt im Working Tree).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-15 05:36:42 +01:00
..

LLM serving stack – Ansible control project

Executes the LLM serving stack for exactly one environment on ghostnet-ki (GNAI-008 section 7.4). Host baseline, Podman runtime, workload accounts and AMD GPU access are managed by ../../host/ansible; this project never changes host state.

Layout

  • inventories/<environment>/ – one inventory per KI environment (currently testing); deployment uses the ansible-deploy account with become: true.
  • playbooks/ai.yml – applies model_store then inference_engine.
  • roles/model_store/ – shared, pinned model weights under /var/lib/ghostnet-ai/shared/models (GNAI-010 sections 3 and 4).
  • roles/inference_engine/ – rootless Quadlets, network, image provisioning and the exclusive profile switch for llama.cpp (GNAI-010 sections 5 and 6).

Control node setup

Use the repository-wide control venv built from ../../../shared/ansible/requirements-control.txt (ansible-core==2.21.4), for example:

python3 -m venv .venv
.venv/bin/pip install -r shared/ansible/requirements-control.txt
cd llm-server/llm/ansible
../../../.venv/bin/ansible-playbook -i inventories/testing playbooks/ai.yml --syntax-check

Usage (Testing)

All commands use the operator deploy key ~/.ssh/id_ed25519_ghostnet_ai_ansible_deploy (see AGENTS.md; no ssh-agent required):

# Preview only – no changes, no downloads, no service start:
../../../.venv/bin/ansible-playbook -i inventories/testing playbooks/ai.yml \
  --check --diff --private-key ~/.ssh/id_ed25519_ghostnet_ai_ansible_deploy

# Provision model weights only (tag models):
../../../.venv/bin/ansible-playbook -i inventories/testing playbooks/ai.yml \
  --tags models --private-key ~/.ssh/id_ed25519_ghostnet_ai_ansible_deploy

# Render quadlets and start/verify the selected profile (tag service):
../../../.venv/bin/ansible-playbook -i inventories/testing playbooks/ai.yml \
  --tags service --private-key ~/.ssh/id_ed25519_ghostnet_ai_ansible_deploy

inference_engine_active_profile selects which rendered quadlet is started; all other profiles stay rendered but stopped. Check mode downloads no model and starts no service. A second identical run must report changed=0 (GNAI-010 section 10.4).

The full technical acceptance (64k/128k start, VRAM distribution, prefill ladder, restart behaviour) is an operator-run protocol documented in GNAI-010; this role automates deployment and basic health only.