---


- name: Set bind configuration for recursive server
  ansible.builtin.template:
    src: named.conf.options_recursive.j2
    dest: /etc/bind/named.conf.options
    owner: bind
    group: bind
    mode: "0644"
    force: true
  notify: restart bind

- name: enable zones.rfc1918 for recursive server
  ansible.builtin.lineinfile:
    dest: /etc/bind/named.conf.local
    line: 'include "/etc/bind/zones.rfc1918";'
    regexp: "zones.rfc1918"
  notify: restart bind
