You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/powervs-vpc-landing-zone/submodules/ansible/templates-ansible/configure-monitoring-instance/playbook-configure-monitoring-instance.yml.tftpl
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,11 @@
20
20
register: update_result
21
21
when:"'SLES' in ansible_distribution"
22
22
23
-
- name: Reboot system with delay
24
-
shell:"(sleep 2 && reboot) &"
25
-
async:1
26
-
poll:0
23
+
- name: Reboot system (SLES)
24
+
ansible.builtin.reboot:
25
+
msg:"Reboot initiated by Ansible"
26
+
connect_timeout:5# SSH connect timeout
27
+
reboot_timeout:600# wait up to 10 min for the node to come back
28
+
pre_reboot_delay:2# wait 2s before sending reboot
29
+
post_reboot_delay:30# wait 30s after system comes back before marking success
27
30
when: update_result is defined and update_result.changed
0 commit comments