changed path for stats file
This commit is contained in:
@@ -21,14 +21,14 @@
|
|||||||
|
|
||||||
- name: nameserver | snmpd | create statistics file
|
- name: nameserver | snmpd | create statistics file
|
||||||
file:
|
file:
|
||||||
path: /etc/bind/named.stats
|
path: /var/cache/bind/stats
|
||||||
state: touch
|
state: touch
|
||||||
owner: "bind"
|
owner: "bind"
|
||||||
group: "bind"
|
group: "bind"
|
||||||
|
|
||||||
- name: nameserver | snmpd | configure named for statistics
|
- name: nameserver | snmpd | configure named for statistics
|
||||||
lineinfile:
|
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
|
state: present
|
||||||
line: '\tstatistics-file "/var/cache/bind/stats";\n\tzone-statistics yes;'
|
line: '\tstatistics-file "/var/cache/bind/stats";\n\tzone-statistics yes;'
|
||||||
insertafter: "options {"
|
insertafter: "options {"
|
||||||
|
|||||||
Reference in New Issue
Block a user