2023-02-21 18:30:09 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set bind configuration for recursive server
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2023-02-21 18:30:09 +01:00
|
|
|
src: named.conf.options_recursive.j2
|
|
|
|
dest: /etc/bind/named.conf.options
|
|
|
|
owner: bind
|
|
|
|
group: bind
|
|
|
|
mode: "0644"
|
2023-06-28 13:22:59 +02:00
|
|
|
force: true
|
2023-02-21 18:30:09 +01:00
|
|
|
notify: restart bind
|
|
|
|
|
|
|
|
- name: enable zones.rfc1918 for recursive server
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2023-02-21 18:30:09 +01:00
|
|
|
dest: /etc/bind/named.conf.local
|
|
|
|
line: 'include "/etc/bind/zones.rfc1918";'
|
|
|
|
regexp: "zones.rfc1918"
|
|
|
|
notify: restart bind
|