summaryrefslogtreecommitdiff
path: root/ansible/roles/srv01/tasks/reboot.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/srv01/tasks/reboot.yaml')
-rw-r--r--ansible/roles/srv01/tasks/reboot.yaml8
1 files changed, 3 insertions, 5 deletions
diff --git a/ansible/roles/srv01/tasks/reboot.yaml b/ansible/roles/srv01/tasks/reboot.yaml
index f521bdc..d36ed0d 100644
--- a/ansible/roles/srv01/tasks/reboot.yaml
+++ b/ansible/roles/srv01/tasks/reboot.yaml
@@ -1,5 +1,3 @@
-- name: "reboot"
- command: "shutdown -r now &"
- async: 1
- poll: 0
- ignore_errors: true
+- name: reboot
+ ansible.builtin.reboot:
+ reboot_timeout: 3600