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