updated
This commit is contained in:
1 parent
79df365f95
commit
bee972ff5f
6 files changed
+48
-44
No files matched your search
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- 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
|
||||
Reference in new issue
Block a user