We are currently using Ansible to install security updates to our Ubuntu 14.04 servers. We are using apticron to tell us when updates are available and we are using unattended-upgrades to install the updates. We want to manually reboot the server not when it installs the updates.
We would like to run an ansible playbook to output what servers are in need of a reboot. I now you can check to see if /var/run/reboot-required is listed, but i’m not sure how to output it.