added unbound as nameserver software
This commit is contained in:
15
roles/nameserver/tasks/configure_unbound_snmpd.yml
Normal file
15
roles/nameserver/tasks/configure_unbound_snmpd.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- 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
|
||||
12
roles/nameserver/tasks/install_unbound.yml
Normal file
12
roles/nameserver/tasks/install_unbound.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: nameserver | unbound | install packages
|
||||
package:
|
||||
name: "{{ unbound_package }}"
|
||||
state: present
|
||||
|
||||
- name: nameserver | unbound | copy config
|
||||
template:
|
||||
src: "unbound_network.conf.j2"
|
||||
dest: "etc/unbound/unbound.conf.d/network.conf"
|
||||
mode: "0644"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
Reference in New Issue
Block a user