robertdebock / ansible-role-update

Install updates on your system.
https://robertdebock.nl/
Apache License 2.0
49 stars 20 forks source link

feat(reboot): cause server to only reboot if required (deb/rhel) #23

Closed dgibbs64 closed 1 year ago

dgibbs64 commented 1 year ago

Describe the change Current behaviour causes a reboot to always happen if an update occurs. However, a reboot is not always required on an update (only sometimes). This PR will cause Debian and Red Hat based systems to only reboot if it is required, preventing unnecessary rebooting.

Testing I am currently waiting for a kernel update to fully test myself. Initial testing works.

dgibbs64 commented 1 year ago

I have just realised that another role already completes this specific functionality. I will close this PR https://github.com/robertdebock/ansible-role-reboot