Quote Originally Posted by malcolmlewis View Post
the command zypper ps -s will output if core libraries have been updated and a reboot is required.

There are exit codes;

           Returned after a successful installation of a patch which requires reboot of computer.
Thanks for your reply. I know about zypper ps, but as far as I know this is only for services and doesn't tell me whether or not a full reboot is required, e.g. for a kernel update.

And about the return code, this is only returned after installation of the package right? So you can't get that return code again after the installation process (I'm not talking about $?)?. Zypper ps doesn't give that return code either.

The problem is that the installation happens via the zypper ansible module, which doesn't let you access the return code of the installation process.