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:
Julian Rother 2023-03-07 20:30:11 +01:00
parent e89b246a72
commit 29c0d79f99
No known key found for this signature in database
GPG key ID: 8F9B6AE9BAAE4899

View file

@ -1,9 +1,14 @@
- name: install dkms dependencies on buster
when: ansible_distribution_release == "buster"
package:
name:
- linux-headers-amd64
- name: install wireguard - name: install wireguard
package: package:
name: name:
- wireguard - wireguard
- wireguard-tools - wireguard-tools
- linux-headers-amd64
- name: handle a wireguard network - name: handle a wireguard network
include_tasks: net.yml include_tasks: net.yml