Workshop wiki · German and English

14 Assertions Preflight

Preflight-Prüfungen mit Assertions / preflight checks with assertions.

Workshop examples as ZIP files
Learning progress in the web app

Mark chapters as read, view reading progress and check off practice modules after enabling the optional web app. Workshop progress is calculated from chapters across all document pages. Your choices stay on this device; there is no account or server sync. Installation is not required. Withdrawing your choice in Privacy settings deletes the progress.

Reading progress0%
0%
0 / 10 chapters read
Other language versionGreek ↗

14 Assertions Preflight

Preflight-Prüfungen mit Assertions / preflight checks with assertions.

1. Prüfen

bash
cd examples/14-assertions-preflight
ansible-inventory --graph
ansible-playbook playbooks/site.yml --syntax-check
ansible-playbook playbooks/site.yml --check --diff
ansible-playbook playbooks/site.yml
ansible-playbook playbooks/site.yml
01 / 10

2. Lernpunkte

  • Inventory und Scope werden vor Ausführung geprüft.
  • Das Playbook ist klein genug für Review im Training.
  • Check Mode und Diff Mode werden genutzt, wenn das Modul sie unterstützt.
  • Der zweite Lauf dient als Idempotenznachweis.
02 / 10

3. Ziel

Dieses Beispiel zeigt einen konkreten, lokal nachvollziehbaren Anwendungsfall für Ansible. Es nutzt localhost, lokale Dummy-Dateien oder Dokumentationsdaten und vermeidet produktive Änderungen.

03 / 10

4. Voraussetzungen

  • Ubuntu-basierte Lab-Umgebung.
  • Ansible ist installiert.
  • Die Workshop-Dateien liegen lokal vor.
  • Keine echten Secrets oder produktiven Daten verwenden.
04 / 10

5. Dateien

  • ansible.cfg setzt Inventory und lokale Rollenpfade.
  • inventory/ enthält Lab-Zielsysteme.
  • playbooks/site.yml enthält den auszuführenden Ablauf.
  • Weitere Dateien wie templates/, tasks/, roles/ oder collections/ ergänzen das jeweilige Thema.
05 / 10

6. Ausführung

  1. Lies README und Sprachdokumentation.
  2. Prüfe Inventory und Zielhosts.
  3. Führe Syntaxcheck aus.
  4. Führe Check Mode und Diff Mode aus.
  5. Führe das Playbook aus.
  6. Führe es erneut aus und bewerte Idempotenz.
06 / 10

7. Erwartetes Ergebnis

Das Beispiel liefert eine nachvollziehbare Ausgabe, eine Markerdatei unter /tmp oder eine reine Debug-/Validierungsausgabe. Es darf keine echten Secrets offenlegen und keine produktiven Systeme ändern.

07 / 10

8. Erklärung

Die Umsetzung demonstriert einen typischen Praxisbaustein. Wichtig sind Reproduzierbarkeit, Lesbarkeit, sichere Dummy-Werte, enger Scope und einfache Rückbaubarkeit.

08 / 10

9. Typische Fehler

  • Beispiel wird aus falschem Arbeitsverzeichnis gestartet.
  • Inventory wird nicht geladen.
  • Check Mode wird als vollständige Simulation missverstanden.
  • Markerdateien unter /tmp werden mit produktivem Zustand verwechselt.
  • Ein Pattern wie all wird ohne --list-hosts verwendet.
09 / 10

10. Erweiterungsmöglichkeiten

  • Beispiel um zweite Umgebung erweitern.
  • Validierung automatisieren.
  • Security- und Troubleshooting-Notizen ergänzen.
  • In eine Workshop-Übung oder Assessment-Frage überführen.
10 / 10

ANS · Orthevs Academy

31 modules as one continuous learning path.

The sequence remains unchanged: from the lab skeleton through technical foundations and operating models to final troubleshooting. The technical directory names are deliberately preserved.

Orthevs – Engineering the foundation for what comes next.

Orthevs as an app

Install Orthevs

The Orthevs web app can be installed on supported mobile devices and desktop browsers.

iPhone and iPad

Open Orthevs in Safari. Tap Share, then Add to Home Screen. Enable Open as Web App if offered, then tap Add.

Android

For the web app, open the browser menu and choose Install app or Add to Home screen. Confirm the installation.

Desktop browser

Open the browser menu or the install icon in the address bar, then choose Install app or Add to Dock.

Web app installation depends on your browser. If no install prompt appears, follow the browser steps shown above.