Files
ansible-pull/roles/nameserver/tasks/configure_unbound_snmpd.yml
2022-03-23 19:20:06 +01:00

15 lines
431 B
YAML

- name: nameserver | snmpd | get script
get_url:
url: "https://github.com/librenms/librenms-agent/raw/master/snmp/unbound"
dest: "/etc/snmp/unbound"
mode: "0755"
owner: "root"
group: "root"
- name: nameserver | snmpd | configure extend
lineinfile:
path: "/etc/snmp/snmpd.conf"
state: present
line: "extend unbound /etc/snmp/unbound"
insertafter: "# SECTION: Extends"
notify: restart_snmpd