3
0
Fork 0

on openstack Debian images, the kernel is different, so we need to install different kernel headers, too

This commit is contained in:
Peter Pallinger 2020-06-03 15:40:29 +02:00
parent 9f76b8baf5
commit 171dc96f3e
1 changed files with 6 additions and 0 deletions

View File

@ -18,10 +18,16 @@
register: dpkg_arch
changed_when: False
- name: (Debian) Get kernel version
command: "uname -r"
register: kernel_version
changed_when: False
- name: (Debian) Install kernel headers to compile Wireguard with DKMS
apt:
name:
- "linux-headers-{{ dpkg_arch.stdout }}"
- "linux-headers-{{ kernel_version.stdout }}"
state: present
- name: (Debian) Install wireguard packages