From aa34d8e135365c4e554a9eaf84073fdf20654daa Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 23 Mar 2022 19:23:11 +0100 Subject: [PATCH] added sudo command --- roles/nameserver/tasks/configure_unbound_snmpd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nameserver/tasks/configure_unbound_snmpd.yml b/roles/nameserver/tasks/configure_unbound_snmpd.yml index bde2052..d152264 100644 --- a/roles/nameserver/tasks/configure_unbound_snmpd.yml +++ b/roles/nameserver/tasks/configure_unbound_snmpd.yml @@ -10,6 +10,6 @@ lineinfile: path: "/etc/snmp/snmpd.conf" state: present - line: "extend unbound /etc/snmp/unbound" + line: "extend unbound /usr/bin/sudo /etc/snmp/unbound" insertafter: "# SECTION: Extends" notify: restart_snmpd \ No newline at end of file