Bestand aus ~/ansible-schule uebernehmen (Push-Setup, Stand Feb 2026)
Playbooks, Inventory, update-ips.sh, first-boot-setup.sh und Doku unveraendert aus dem alten git-losen Ordner uebernommen. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
17
playbooks/ping.yml
Normal file
17
playbooks/ping.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
# Test-Playbook: Pruefen ob alle Rechner erreichbar sind
|
||||
---
|
||||
- name: Ping alle Laptops
|
||||
hosts: schul_laptops
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: Ping
|
||||
ping:
|
||||
|
||||
- name: Zeige Hostname
|
||||
command: hostname
|
||||
register: result
|
||||
changed_when: false
|
||||
|
||||
- name: Ausgabe
|
||||
debug:
|
||||
msg: "{{ inventory_hostname }} antwortet als {{ result.stdout }}"
|
||||
Reference in New Issue
Block a user