bind9-ansible-role/tasks/03-configure.yml

20 lines
395 B
YAML

# Configure bind9
- name: Create named.conf.local
become: true
template:
src: named.conf.local.j2
dest: /etc/bind/named.conf.local
owner: bind
group: bind
mode: 0644
- name: Generate DNS zones
become: true
template:
src: zone.j2
dest: "/srv/dns/{{item.name}}.zone"
owner: bind
group: bind
mode: 0644
with_items: "{{bind9_zones | default([])}}"