diff --git a/roles/nameserver/tasks/configure_bind_snmpd.yml b/roles/nameserver/tasks/configure_bind_snmpd.yml index 7598c79..a03aea0 100644 --- a/roles/nameserver/tasks/configure_bind_snmpd.yml +++ b/roles/nameserver/tasks/configure_bind_snmpd.yml @@ -31,7 +31,7 @@ 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;' - insertbefore: "};" + insertafter: "options {" validate: /usr/sbin/named-checkconf %s notify: restart_named