From dd6c1461041f1b83f1e9fa53550fb8300bec505b Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Mon, 20 Jul 2026 17:35:10 +0200 Subject: [PATCH] Entferne ignorierten Ordner aus Git-Tracking --- README.md | 56 +++++++++++++++++++ outputs/20260717_163354_hello_world.txt | 21 ------- outputs/20260720_105453_hello_world.txt | 21 ------- outputs/20260720_105837_hello_world.txt | 21 ------- outputs/20260720_110257_hello_world.txt | 21 ------- outputs/20260720_110328_hello_world.txt | 21 ------- outputs/20260720_110442_hello_world.txt | 21 ------- outputs/20260720_111002_test.txt | 21 ------- outputs/20260720_111257_test.txt | 21 ------- outputs/20260720_111305_hello_world.txt | 21 ------- outputs/20260720_111310_hello_world.txt | 21 ------- outputs/20260720_111315_test.txt | 21 ------- outputs/20260720_111328_test.txt | 21 ------- outputs/20260720_161802_test.txt | 21 ------- outputs/20260720_161812_hello_world.txt | 21 ------- .../archiv/20260717_144254_hello_world.txt | 16 ------ .../archiv/20260717_144306_hello_world.txt | 16 ------ .../archiv/20260717_150244_hello_world.txt | 16 ------ 18 files changed, 56 insertions(+), 342 deletions(-) create mode 100644 README.md delete mode 100644 outputs/20260717_163354_hello_world.txt delete mode 100644 outputs/20260720_105453_hello_world.txt delete mode 100644 outputs/20260720_105837_hello_world.txt delete mode 100644 outputs/20260720_110257_hello_world.txt delete mode 100644 outputs/20260720_110328_hello_world.txt delete mode 100644 outputs/20260720_110442_hello_world.txt delete mode 100644 outputs/20260720_111002_test.txt delete mode 100644 outputs/20260720_111257_test.txt delete mode 100644 outputs/20260720_111305_hello_world.txt delete mode 100644 outputs/20260720_111310_hello_world.txt delete mode 100644 outputs/20260720_111315_test.txt delete mode 100644 outputs/20260720_111328_test.txt delete mode 100644 outputs/20260720_161802_test.txt delete mode 100644 outputs/20260720_161812_hello_world.txt delete mode 100644 outputs/archiv/20260717_144254_hello_world.txt delete mode 100644 outputs/archiv/20260717_144306_hello_world.txt delete mode 100644 outputs/archiv/20260717_150244_hello_world.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..68f4c8a --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Ansible Playbook Runner + +Mit dieser Anwendung kannst du Ansible‑Playbooks über eine Weboberfläche ausführen. +Die App läuft auf deinem Rechner und ist über `https://man-dan-05` erreichbar. + +## Was du brauchst + +- **Python 3.11** (oder neuer) +- **Docker** und **Docker Compose** (für den Nginx‑Proxy) +- **Ansible** (auf deinem Rechner installiert) +- Die Dateien aus diesem Projekt + +## So startest du die Anwendung + +1. **Zertifikate bereitlegen** + Die Dateien `certs/man-dan-05.crt` und `certs/man-dan-05.key` müssen im Ordner `certs` liegen. + (Falls du andere Zertifikate hast, passe die Pfade in `nginx.conf` an.) + +2. **Playbooks ablegen** + Lege deine `.yml`‑ oder `.yaml`‑Playbooks in den Ordner `playbooks`. + +3. **Starten** + Führe im Projektverzeichnis das Startskript aus: + ```bash + ./start.sh + ``` + Das Skript startet zuerst den Nginx‑Container und danach die Reflex‑App. + +4. **Öffnen** + Rufe im Browser `https://man-dan-05` auf. + (Beim ersten Mal musst du die Zertifikatswarnung akzeptieren.) + +## Was die einzelnen Dateien tun + +| Datei | Aufgabe | +|-------|---------| +| `app/app.py` | Die eigentliche Anwendung (Weboberfläche, Playbook‑Ausführung) | +| `rxconfig.py` | Einstellungen für Reflex (Ports, URLs, CORS) | +| `nginx.conf` | Konfiguration für den Nginx‑Reverse‑Proxy (HTTPS, Weiterleitung) | +| `docker-compose.yml` | Startet den Nginx‑Container | +| `start.sh` | Startet Nginx und die App nacheinander | +| `certs/` | Ordner für die SSL‑Zertifikate | +| `playbooks/` | Ordner für deine Ansible‑Playbooks | +| `outputs/` | Hier werden die Ausgaben der Playbook‑Läufe gespeichert | + +## Fehlerbehebung + +- **Seite lädt nicht** → Prüfe, ob der Nginx‑Container läuft: `docker ps` +- **Keine Playbooks gefunden** → Liegen `.yml`‑Dateien im Ordner `playbooks`? +- **Zertifikatswarnung** → Das ist normal bei selbst erstellten Zertifikaten. Akzeptiere die Warnung. +- **WebSocket‑Fehler** → Stelle sicher, dass in `rxconfig.py` die URL `wss://man-dan-05/api/_event` steht und in `nginx.conf` der Pfad `/api/_event` korrekt weitergeleitet wird. + +## Anwendung beenden + +- **Reflex‑App**: `Strg + C` im Terminal, in dem `reflex run` läuft. +- **Nginx‑Container**: `docker compose down` diff --git a/outputs/20260717_163354_hello_world.txt b/outputs/20260717_163354_hello_world.txt deleted file mode 100644 index 4de25e0..0000000 --- a/outputs/20260717_163354_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-17T14:33:55Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-17T14:33:55Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_105453_hello_world.txt b/outputs/20260720_105453_hello_world.txt deleted file mode 100644 index cf79423..0000000 --- a/outputs/20260720_105453_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T08:54:54Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T08:54:54Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_105837_hello_world.txt b/outputs/20260720_105837_hello_world.txt deleted file mode 100644 index d2367b4..0000000 --- a/outputs/20260720_105837_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T08:58:37Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T08:58:37Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_110257_hello_world.txt b/outputs/20260720_110257_hello_world.txt deleted file mode 100644 index 1c45eae..0000000 --- a/outputs/20260720_110257_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:02:57Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:02:57Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_110328_hello_world.txt b/outputs/20260720_110328_hello_world.txt deleted file mode 100644 index 88905d5..0000000 --- a/outputs/20260720_110328_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:03:32Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:03:32Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_110442_hello_world.txt b/outputs/20260720_110442_hello_world.txt deleted file mode 100644 index 6ba1892..0000000 --- a/outputs/20260720_110442_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:04:46Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:04:46Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_111002_test.txt b/outputs/20260720_111002_test.txt deleted file mode 100644 index 3f1b3a0..0000000 --- a/outputs/20260720_111002_test.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:10:03Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:10:03Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_111257_test.txt b/outputs/20260720_111257_test.txt deleted file mode 100644 index 6d57740..0000000 --- a/outputs/20260720_111257_test.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:12:59Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:12:59Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_111305_hello_world.txt b/outputs/20260720_111305_hello_world.txt deleted file mode 100644 index 642049a..0000000 --- a/outputs/20260720_111305_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:13:08Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:13:08Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_111310_hello_world.txt b/outputs/20260720_111310_hello_world.txt deleted file mode 100644 index 7d46dee..0000000 --- a/outputs/20260720_111310_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:13:11Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:13:11Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_111315_test.txt b/outputs/20260720_111315_test.txt deleted file mode 100644 index 2d1c033..0000000 --- a/outputs/20260720_111315_test.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:13:16Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:13:16Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_111328_test.txt b/outputs/20260720_111328_test.txt deleted file mode 100644 index b0b7064..0000000 --- a/outputs/20260720_111328_test.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T09:13:29Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T09:13:29Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_161802_test.txt b/outputs/20260720_161802_test.txt deleted file mode 100644 index faef5f6..0000000 --- a/outputs/20260720_161802_test.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T14:18:02Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T14:18:02Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/20260720_161812_hello_world.txt b/outputs/20260720_161812_hello_world.txt deleted file mode 100644 index 98b5113..0000000 --- a/outputs/20260720_161812_hello_world.txt +++ /dev/null @@ -1,21 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo man-dan-05! Die Uhrzeit ist 2026-07-20T14:18:12Z" -} - -TASK [Uhrzeit ausgeben] ******************************************************** -ok: [localhost] => { - "msg": "Die Uhrzeit ist 2026-07-20T14:18:12Z" -} - -PLAY RECAP ********************************************************************* -localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/archiv/20260717_144254_hello_world.txt b/outputs/archiv/20260717_144254_hello_world.txt deleted file mode 100644 index 545f2db..0000000 --- a/outputs/archiv/20260717_144254_hello_world.txt +++ /dev/null @@ -1,16 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo Welt" -} - -PLAY RECAP ********************************************************************* -localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/archiv/20260717_144306_hello_world.txt b/outputs/archiv/20260717_144306_hello_world.txt deleted file mode 100644 index 545f2db..0000000 --- a/outputs/archiv/20260717_144306_hello_world.txt +++ /dev/null @@ -1,16 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo Welt" -} - -PLAY RECAP ********************************************************************* -localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' diff --git a/outputs/archiv/20260717_150244_hello_world.txt b/outputs/archiv/20260717_150244_hello_world.txt deleted file mode 100644 index 545f2db..0000000 --- a/outputs/archiv/20260717_150244_hello_world.txt +++ /dev/null @@ -1,16 +0,0 @@ - -PLAY [Hallo Welt ausgeben] ***************************************************** - -TASK [Gathering Facts] ********************************************************* -ok: [localhost] - -TASK [Hallo Welt ausgeben] ***************************************************** -ok: [localhost] => { - "msg": "Hallo Welt" -} - -PLAY RECAP ********************************************************************* -localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 - -[WARNING]: No inventory was parsed, only implicit localhost is available -[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'