Add bind configuration

This commit is contained in:
Tristan PILAT 2017-04-13 17:12:16 +02:00
parent 350cf87eb6
commit c12e85cf4b
2 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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