Merge "Add OS version to check reboot happened" into stable/victoria

This commit is contained in:
Zuul 2021-07-21 01:43:42 +00:00 committed by Gerrit Code Review
commit 56f03d66ef

View File

@ -255,8 +255,9 @@ outputs:
- name: reboot to perform the upgrade
reboot:
reboot_timeout: "{{upgrade_leapp_reboot_timeout}}"
# TODO(holser): ansible 2.10 and higher provides boot_time_command to detect boot_id before and after reboot.
test_command: >-
systemctl is-system-running | grep -e running -e degraded
source /etc/os-release; [ "${VERSION_ID%.*}" -ge "8" ] && systemctl is-system-running | grep -qE "running|degraded" || exit 1
post_reboot_delay: "{{ upgrade_leapp_post_reboot_delay }}"
- name: Package and repo update tasks