deactivate systemd-resolved

and replaced paths with global vars
This commit is contained in:
rene
2022-03-24 11:50:54 +01:00
parent 6b974c5633
commit 45652aebe3
12 changed files with 57 additions and 21 deletions

View File

@@ -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"