Commit babddab5 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

playbook: debian{9,10}: Install/upgrade linux-headers as well

See merge request !135
parents 00e33f9b 4e345bcc
......@@ -7,8 +7,18 @@
# kernel, nxd-fuse will be skipped to compile, fail to load and FUSE won't
# be working at all:
# https://lab.nexedi.com/nexedi/slapos.package/merge_requests/132#note_120438
#
# NOTE we have to explicitly install/upgrade kernel headers here as well
# because once they are installed via nxd-fuse-dkms -> dkms -> linux-headers-amd64,
# they won't be upgraded, and if linux-image-amd64 gets upgraded, but headers are
# not, nxd-fuse-dkms will be skipped to recompile for upgraded kernel.
- name: Debian 9/10 - Install latest stable updates for distribution kernel
apt: name=linux-image-amd64 state=latest update_cache=yes
apt:
name:
- linux-image-amd64
- linux-headers-amd64
state: latest
update_cache: yes
when: ansible_distribution == "Debian" and
(ansible_distribution_major_version == "9" or ansible_distribution_major_version == "10")
notify: [ 'Mark to reboot' ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment