Files
ansible_pr-sentation/Beispiel/site.yml
T
2026-09-14 11:36:01 +02:00

14 lines
419 B
YAML

---
# site.yml — Haupt-Playbook
# Ruft die Rolle "webserver" für localhost auf.
- name: Webserver auf localhost konfigurieren
hosts: localhost
gather_facts: true # Facts sammeln (OS, IP, Hostname, …)
become: true # mit sudo ausführen (für Paket-Installation)
roles:
- role: webserver
vars: # Playbook-Variablen (überschreibt Defaults)
domain: localhost