From 525868caafcc1ef8b244f927c921ff25d2a230bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20D=C3=A9siles?= <1536672+cdesiles@users.noreply.github.com> Date: Tue, 17 Mar 2026 23:10:08 +0100 Subject: [PATCH] fix: wireguard on archlinux --- roles/wireguard/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 1c3da2a..b18b2a4 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -19,10 +19,11 @@ # Use systemd-resolved for DNS management (modern approach on all distributions) # Install systemd-resolvconf to provide resolvconf compatibility wrapper # "systemd-resolved" is prefered over "openresolv" -- name: Install systemd-resolvconf +- name: Install systemd-resolvconf (Debian only, built into systemd on Arch) ansible.builtin.package: name: systemd-resolvconf state: present + when: ansible_facts['os_family'] == 'Debian' - name: Ensure systemd-resolved is enabled and started ansible.builtin.systemd: