on openstack Debian images, the kernel is different, so we need to install different kernel headers, too
This commit is contained in:
parent
9f76b8baf5
commit
171dc96f3e
|
@ -18,10 +18,16 @@
|
||||||
register: dpkg_arch
|
register: dpkg_arch
|
||||||
changed_when: False
|
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
|
- name: (Debian) Install kernel headers to compile Wireguard with DKMS
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- "linux-headers-{{ dpkg_arch.stdout }}"
|
- "linux-headers-{{ dpkg_arch.stdout }}"
|
||||||
|
- "linux-headers-{{ kernel_version.stdout }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: (Debian) Install wireguard packages
|
- name: (Debian) Install wireguard packages
|
||||||
|
|
Reference in a new issue