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:
parent
46441f80cb
commit
0bcbb2cc5a
|
@ -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
|
||||
|
|
Reference in a new issue