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

20 lines
395 B
YAML
Raw Normal View History

2021-12-27 20:58:01 +01:00
# 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
2021-12-27 21:07:43 +01:00
become: true
2021-12-27 20:58:01 +01:00
template:
src: zone.j2
dest: "/srv/dns/{{item.name}}.zone"
owner: bind
group: bind
mode: 0644
with_items: "{{bind9_zones | default([])}}"