--- - name: Ensure the Debian stock kernel and os-prober are uninstalled ansible.builtin.apt: name: - linux-image-amd64 - linux-image-5.10* - os-prober state: absent - name: Ensure grub gets updated ansible.builtin.shell: cmd: update-grub