This commit is contained in:
+4
-6
@@ -1,15 +1,13 @@
|
||||
---
|
||||
# site.yml — Haupt-Playbook
|
||||
# Ruft die Rolle "webserver" für localhost auf.
|
||||
# Ruft die Rolle "webserver" für ubuntu-test-2 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
|
||||
- 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: localhost
|
||||
domain: ubuntu-test-2
|
||||
|
||||
Reference in New Issue
Block a user