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:
27
playbooks/reboot.yml
Normal file
27
playbooks/reboot.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user