Only install kernel headers on Buster
Since Bullseye, wireguard is a regular kernel module and DKMS is no longer required. Installing linux-headers-amd64 does not work on non-amd64 systems.
This commit is contained in:
parent
e89b246a72
commit
29c0d79f99
1 changed files with 6 additions and 1 deletions
|
|
@ -1,9 +1,14 @@
|
|||
- name: install dkms dependencies on buster
|
||||
when: ansible_distribution_release == "buster"
|
||||
package:
|
||||
name:
|
||||
- linux-headers-amd64
|
||||
|
||||
- name: install wireguard
|
||||
package:
|
||||
name:
|
||||
- wireguard
|
||||
- wireguard-tools
|
||||
- linux-headers-amd64
|
||||
|
||||
- name: handle a wireguard network
|
||||
include_tasks: net.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue