Files
ansible_pr-sentation/Beispiel/site.yml
T
2026-09-14 13:10:02 +02:00

16 lines
589 B
YAML

---
# site.yml — Haupt-Playbook
# Ruft die Rolle "webserver" für localhost auf.
- name: Webserver auf localhost konfigurieren
hosts: localhost
connection: local # Connection-Typ "local" (lokal) — "localhost" ist der HOST
# es gibt keinen echten Host, zu dem man SSH-en könnte
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