Perhaps not the "Ansible way", but you could install
'update-notifer-common' package and see if /var/run/reboot-required file is
present - perhaps via nagios or cron + mail message.

http://serverfault.com/questions/92932/how-does-ubuntu-keep-track-of-the-system-restart-required-flag-in-motd

https://packages.debian.org/wheezy/update-notifier-common

Maciej


2014-08-03 0:40 GMT+02:00 Christian Schmitt <[email protected]>:

> Currently i'm running a playbook against multiple servers, is there a way
> to print something if a server needs a reboot after an apt-get upgrade?
> i mean if the kernel gets upgraded i need to know which of them needs an
> restart.
>
> is there a possible way that ansible could report such thing
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/620390e6-824b-4ac5-bbe3-783e5e7b20d4%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/620390e6-824b-4ac5-bbe3-783e5e7b20d4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEnKK1z__DrKRdCgRtGGaxVuOsnbQHtdK0J6_2V5eX2v3xRUzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to