How to find out if Raspberry PI Linux OS needs a reboot

Explains how to find out if Raspberry PI Linux OS needs a reboot to apply kernel updates using the CLI and Ansible methods.

Source: How to find out if Raspberry PI Linux OS needs a reboot – nixCraft