Files
schul-laptops/playbooks/reboot.yml
Herb bd4384c36f 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>
2026-07-13 13:11:24 +02:00

28 lines
579 B
YAML

# Neustart aller Clients
#
# Verwendung:
# ansible-playbook playbooks/reboot.yml
#
# Nur bestimmte Rechner:
# ansible-playbook playbooks/reboot.yml --limit laptop05,laptop06
#
---
- name: Rechner neustarten
hosts: clients
become: yes
tasks:
- name: Neustart durchfuehren
reboot:
reboot_timeout: 300
msg: "Neustart durch Ansible"
- name: Warten bis Rechner wieder erreichbar
wait_for_connection:
delay: 10
timeout: 300
- name: Bestaetigung
debug:
msg: "{{ inventory_hostname }} ist wieder online"