ilri / rmg-ansible-public

Ansible playbooks for ILRI research-computing infrastructure
GNU General Public License v3.0
8 stars 2 forks source link

Add reboot check/wait support #59

Closed alanorth closed 7 years ago

alanorth commented 7 years ago

Simple way to check if a reboot is needed after running package updates on a fresh VM:

$ if [[ $(readlink -f /vmlinuz) != /boot/vmlinuz-$(uname -r) ]]; then echo "required"; else echo "no"; fi
required

From: https://github.com/trailofbits/algo/blob/master/roles/common/tasks/main.yml

alanorth commented 7 years ago

Actually, this is very clever, but won't work for us because our hosts are on Linode, and the kernels are managed by the hypervisor, not the guest's package manager.