Ansible reboot only if Linux kernel update installed

How do I reboot Linux VM or bare metal server only after Linux kernel update? What should I put into my playbook?


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki