deactivate systemd-resolved
and replaced paths with global vars
This commit is contained in:
@@ -28,16 +28,16 @@
|
||||
|
||||
- name: nameserver | snmpd | configure named for statistics
|
||||
lineinfile:
|
||||
path: "/etc/bind/named.conf.options" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
|
||||
path: "{{ named_conf_options }}" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
|
||||
state: present
|
||||
line: 'statistics-file "/var/cache/bind/stats"; zone-statistics yes;'
|
||||
insertafter: "options {"
|
||||
insertbefore: "};"
|
||||
validate: /usr/sbin/named-checkconf %s
|
||||
notify: restart_named
|
||||
|
||||
- name: nameserver | snmpd | configure extend
|
||||
lineinfile:
|
||||
path: "/etc/snmp/snmpd.conf"
|
||||
path: "{{ snmpd_conf }}"
|
||||
state: present
|
||||
line: "extend bind /etc/snmp/bind"
|
||||
insertafter: "# SECTION: Extends"
|
||||
|
||||
Reference in New Issue
Block a user