reboot_required_file is only registered on Debian hosts (guarded by when: ansible_os_family == "Debian"). On RedHat/other hosts that task is skipped, so the following reboot task evaluates reboot_required_file.stat.exists on an undefined variable and crashes with a fatal error.
Fix
when:reboot_required_file is defined and reboot_required_file.stat.exists
File:playbooks/update_upgrade.yml
## Problem
`reboot_required_file` is only registered on Debian hosts (guarded by `when: ansible_os_family == "Debian"`). On RedHat/other hosts that task is skipped, so the following reboot task evaluates `reboot_required_file.stat.exists` on an undefined variable and crashes with a fatal error.
## Fix
```yaml
when: reboot_required_file is defined and reboot_required_file.stat.exists
```
**File:** `playbooks/update_upgrade.yml`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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