Merge "Add OS version to check reboot happened"

This commit is contained in:
Zuul 2021-07-19 18:07:40 +00:00 committed by Gerrit Code Review
commit 53f6f79c18

View File

@ -252,8 +252,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