This commit is contained in:
Jukka Nousiainen 2021-07-25 09:25:31 +03:00 committed by Andreas B. Mundt
parent 1a0b2614bc
commit bf265a8309
5 changed files with 13 additions and 18 deletions

View file

@ -42,10 +42,15 @@
dest: "/etc/bind/{{ item }}"
loop:
- db.intern
- db.lan
- localzones
notify: restart bind
- name: deploy config files for bind9 - special case where template destination filename is dynamic
template:
src: db.lan.j2
dest: "/etc/bind/db.{{ ipaddr_lan_threeoct }}"
notify: restart bind
- name: link zone files to writeable directory for DDNS
file:
src: "/etc/bind/{{ item }}"
@ -53,7 +58,7 @@
state: link
loop:
- db.intern
- db.lan
- "db.{{ ipaddr_lan_threeoct }}"
notify: restart bind
- name: enable local bind config