summaryrefslogtreecommitdiff
path: root/ansible/roles/srv01/tasks/reboot.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-12 12:00:33 +0300
committerheqnx <root@heqnx.com>2025-07-12 12:00:33 +0300
commitc8a6c4f60ed36e6d29461599695baa779aff4948 (patch)
treea6d4fc79e38067ea14c768c913ca1e22e3478865 /ansible/roles/srv01/tasks/reboot.yaml
parent6ec2eb61a02f9e55ef5b8d22a5ca61ca53ca05e7 (diff)
downloadansible-active-directory-range-c8a6c4f60ed36e6d29461599695baa779aff4948.tar.gz
ansible-active-directory-range-c8a6c4f60ed36e6d29461599695baa779aff4948.zip
adding a linux domain joined server
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