Anpassung Powerpoint
This commit is contained in:
@@ -50,6 +50,11 @@ ansible-playbook site.yml
|
||||
ansible-playbook site.yml -e "nginx_port=9090"
|
||||
```
|
||||
|
||||
> **Wichtig:** Das Playbook läuft über `connection: local` direkt auf diesem
|
||||
> Rechner — „localhost" ist kein echter Host im Netzwerk, es gibt nichts, wohin
|
||||
> per SSH verbunden werden müsste. (Zusätzlich ist `ansible_connection: local`
|
||||
> auch im `inventory.yml` hinterlegt.)
|
||||
|
||||
---
|
||||
|
||||
## Variablen-Präzedenz im Beispiel
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
- 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user