[P1] Reboot task in update_upgrade.yml crashes on non-Debian hosts #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
reboot_required_fileis only registered on Debian hosts (guarded bywhen: ansible_os_family == "Debian"). On RedHat/other hosts that task is skipped, so the following reboot task evaluatesreboot_required_file.stat.existson an undefined variable and crashes with a fatal error.Fix
File:
playbooks/update_upgrade.yml