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.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/srv01/tasks/reboot.yaml b/ansible/roles/srv01/tasks/reboot.yaml
new file mode 100644
index 0000000..29ea4b0
--- /dev/null
+++ b/ansible/roles/srv01/tasks/reboot.yaml
@@ -0,0 +1,5 @@
+- name: "{{ main_linux_srv01_hostname }}.{{ main_domain_name }}: reboot"
+ command: "shutdown -r now &"
+ async: 1
+ poll: 0
+ ignore_errors: true