From f85af1cec4a7013f7c9e16cda1790bb692f90108 Mon Sep 17 00:00:00 2001 From: Rene Date: Thu, 21 Apr 2022 22:50:19 +0200 Subject: [PATCH] changed path for stats file --- roles/nameserver/tasks/configure_bind_snmpd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nameserver/tasks/configure_bind_snmpd.yml b/roles/nameserver/tasks/configure_bind_snmpd.yml index 3c3a89f..c00c6b6 100644 --- a/roles/nameserver/tasks/configure_bind_snmpd.yml +++ b/roles/nameserver/tasks/configure_bind_snmpd.yml @@ -21,14 +21,14 @@ - name: nameserver | snmpd | create statistics file file: - path: /etc/bind/named.stats + path: /var/cache/bind/stats state: touch owner: "bind" group: "bind" - name: nameserver | snmpd | configure named for statistics lineinfile: - 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). + path: "{{ named_conf_options }}" state: present line: '\tstatistics-file "/var/cache/bind/stats";\n\tzone-statistics yes;' insertafter: "options {"