From 0f9de5e20c996ef231db505bbe18402c1ea7021e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 21 Aug 2025 03:24:34 +0200 Subject: Fix the wireguard install The conflict was due to resolvconf was removing the systemd-resolved configuration and that was causing the network to go down and the fallback on the statically managed resolv.conf (which wasn't able to resolve the DNS) due to how network manager requiring the DNS resolution to happen through systemd-resolved --- roles/wireguard/tasks/main.yml | 2 +- roles/wireguard/vars/debian.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'roles/wireguard') diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 45011ea1..aaed64ab 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -43,7 +43,7 @@ ansible.builtin.command: cmd: "wg-quick down {{ item }}" with_items: "{{ wireguard_connections.keys() | list }}" - changed_when: true + changed_when: false failed_when: false - name: "Enable and start wg-quick service for connection {{ wireguard_autostart_connection }}" diff --git a/roles/wireguard/vars/debian.yml b/roles/wireguard/vars/debian.yml index f9c5f5f7..d98f40cb 100644 --- a/roles/wireguard/vars/debian.yml +++ b/roles/wireguard/vars/debian.yml @@ -1,4 +1,3 @@ --- wireguard_pkgs: - "wireguard" - - "resolvconf" -- cgit v1.2.3