Skip to content

Commit d1fe43a

Browse files
fix: reboot
SKIP UPGRADE TEST: Breaking change auto stock image import
1 parent 10505a6 commit d1fe43a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

modules/powervs-vpc-landing-zone/submodules/ansible/templates-ansible/configure-monitoring-instance/playbook-configure-monitoring-instance.yml.tftpl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
register: update_result
2121
when: "'SLES' in ansible_distribution"
2222

23-
- name: Reboot if updates were installed
24-
ansible.builtin.command: shutdown -r now
25-
async: 1
26-
poll: 0
23+
- name: Reboot the system if updates were installed
24+
ansible.builtin.reboot:
25+
reboot_timeout: 600
26+
test_command: whoami
27+
when: update_result is defined and update_result.changed
2728
ignore_errors: true
28-
29-
- name: Wait for the system to come back online
30-
wait_for_connection:
31-
timeout: 1500

0 commit comments

Comments
 (0)