Files
ansible_pr-sentation/Beispiel/site.yml
T
JonnyBravo 05968a9db9
Ansible Deploy (ubuntu-test-2) / deploy (push) Successful in 8s
gitea action
2026-10-14 10:39:57 +02:00

14 lines
435 B
YAML

---
# site.yml — Haupt-Playbook
# Ruft die Rolle "webserver" für ubuntu-test-2 auf.
- name: Webserver auf ubuntu-test-2 konfigurieren
hosts: ubuntu-test-2
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: ubuntu-test-2