1
0
Fork 0

Install kernel headers on debian

There is no equivalent package of linux-headers-generic on debian.
Package installation needs to specify the architecture (i.e. amd64),
which is captured from dpkg output.
This commit is contained in:
Ties de Kock 2019-01-30 18:08:38 +01:00
parent 46441f80cb
commit 0bcbb2cc5a

View file

@ -24,3 +24,14 @@
update_cache: yes
tags:
- wg-install
- name: Get architecture
shell: dpkg --print-architecture
register: dpkg_arch
changed_when: "0 != 0"
- name: Install kernel headers to compile wireguard with DKMS
apt:
name:
- "linux-headers-{{ dpkg_arch.stdout }}"
state: present