From 29c0d79f99e1c4f1a81a5f949b9d256d0c8c2a2c Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Tue, 7 Mar 2023 20:30:11 +0100 Subject: [PATCH] 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. --- tasks/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1def4c2..a1e829a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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