Files
Ansible/playbooks/maintenance_reboot.yml
T
admin_rb d095887d2e snapshot
2026-09-15 21:33:10 +02:00

16 lines
388 B
YAML

---
- name: "Maintenance | Reboot systems"
hosts: all
gather_facts: true
tasks:
- name: "Windows | Reboot system"
when: ansible_facts['os_family'] == 'Windows'
ansible.windows.win_reboot:
reboot_timeout: 1800
- name: "Linux | Reboot system"
when: ansible_facts['os_family'] != 'Windows'
ansible.builtin.reboot:
reboot_timeout: 1800