diff --git a/roles/nameserver/tasks/configure_bind_snmpd.yml b/roles/nameserver/tasks/configure_bind_snmpd.yml index b62ef7a..a795ef6 100644 --- a/roles/nameserver/tasks/configure_bind_snmpd.yml +++ b/roles/nameserver/tasks/configure_bind_snmpd.yml @@ -32,7 +32,7 @@ state: present line: 'statistics-file "/var/cache/bind/stats"; zone-statistics yes;' insertafter: "options {" - validate: /usr/bin/named-checkconf %s + validate: /usr/sbin/named-checkconf %s notify: restart_named - name: nameserver | snmpd | configure extend diff --git a/roles/nameserver/tasks/main.yml b/roles/nameserver/tasks/main.yml index 7666243..83b8455 100644 --- a/roles/nameserver/tasks/main.yml +++ b/roles/nameserver/tasks/main.yml @@ -19,7 +19,7 @@ - block: - include_tasks: install_unbound.yml - - include_tasks: configure_unbound.yml + - include_tasks: configure_unbound_snmpd.yml rescue: - set_fact: task_failed=true when: unbound == true