From 745b50de2166503d73f9003da380c058f1ea9bcc Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 24 Mar 2022 11:53:00 +0100 Subject: [PATCH] must be after the options line because '};' can belong to any section --- roles/nameserver/tasks/configure_bind_snmpd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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