Files
Ansible/ubuntu/reboot.yaml
T
2025-09-03 20:45:17 -05:00

18 lines
379 B
YAML

---
- name: Rebooting Machines Proxmox
hosts: proxmox
become: true
tasks:
- name: Checking Reboot is needed
become: true
ansible.builtin.stat:
path: /run/reboot-required
register: reboot_required
- name: Reboot Machine
become: true
ansible.builtin.reboot:
reboot_timeout: 3600
when: reboot_required.stat.exists