From c12e85cf4ba31b4a194fbc4a2b780c9d84def0b2 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Thu, 13 Apr 2017 17:12:16 +0200 Subject: [PATCH] Add bind configuration --- bind/defaults/main.yml | 3 +++ bind/tasks/main.yml | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/bind/defaults/main.yml b/bind/defaults/main.yml index 7fb059c4..52c6ac66 100644 --- a/bind/defaults/main.yml +++ b/bind/defaults/main.yml @@ -1,3 +1,6 @@ --- bind_systemd_service_path: /etc/systemd/system/bind9.service bind_chroot_root: /var/chroot-bind +bind_statistics_file: /var/run/named.stats +bind_log_file: /var/log/bind.log +bind_query_file: /var/log/query.log diff --git a/bind/tasks/main.yml b/bind/tasks/main.yml index ec3ab137..0bc3e5cd 100644 --- a/bind/tasks/main.yml +++ b/bind/tasks/main.yml @@ -3,6 +3,17 @@ name: bind9 state: present +- name: Set bind configuration + template: + src: named.conf.options.j2 + dest: /etc/bind/named.conf.options + owner: root + group: root + mode: "0644" + force: yes + backup: yes + notify: restart bind + - name: Modify OPTIONS in /etc/default/bind9 replace: dest: /etc/default/bind9