forked from evolix/ansible-roles
Add bind configuration
This commit is contained in:
parent
350cf87eb6
commit
c12e85cf4b
|
@ -1,3 +1,6 @@
|
||||||
---
|
---
|
||||||
bind_systemd_service_path: /etc/systemd/system/bind9.service
|
bind_systemd_service_path: /etc/systemd/system/bind9.service
|
||||||
bind_chroot_root: /var/chroot-bind
|
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
|
||||||
|
|
|
@ -3,6 +3,17 @@
|
||||||
name: bind9
|
name: bind9
|
||||||
state: present
|
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
|
- name: Modify OPTIONS in /etc/default/bind9
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/default/bind9
|
dest: /etc/default/bind9
|
||||||
|
|
Loading…
Reference in a new issue