From c7e0bf8c3c52aaee331d416c9292a84d172cecf3 Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Fri, 16 Aug 2024 18:45:41 +0200 Subject: [PATCH] use default if not a wg client --- roles/server/tasks/utilities/snmpd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/server/tasks/utilities/snmpd.yml b/roles/server/tasks/utilities/snmpd.yml index c4418b1..620c29b 100644 --- a/roles/server/tasks/utilities/snmpd.yml +++ b/roles/server/tasks/utilities/snmpd.yml @@ -74,8 +74,7 @@ lineinfile: path: "{{ snmpd_conf }}" regexp: "^agentaddress.*$" - state: present - line: "agentaddress udp:161,udp6:[::1]:161" + state: absent when: wg_local_ip is not defined - name: server | snmpd | copy distro script