Fix bind configuration.
This commit is contained in:
parent
b0e34434b1
commit
a5e143b900
6 changed files with 14 additions and 17 deletions
|
@ -39,19 +39,16 @@
|
|||
|
||||
- name: deploy config files for bind9
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/bind/{{ item }}"
|
||||
src: "{{ item.src }}.j2"
|
||||
dest: "/etc/bind/{{ item.dest }}"
|
||||
mode: 0644
|
||||
loop:
|
||||
- db.intern
|
||||
- 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 }}"
|
||||
mode: 0644
|
||||
- src: db.RR
|
||||
dest: "db.{{ ansible_domain }}"
|
||||
- src: db.RRinv
|
||||
dest: "db.{{ ipaddr_lan_threeoct }}"
|
||||
- src: localzones
|
||||
dest: localzones
|
||||
notify: restart bind
|
||||
|
||||
- name: link zone files to writeable directory for DDNS
|
||||
|
@ -60,7 +57,7 @@
|
|||
dest: "/var/lib/bind/{{ item }}"
|
||||
state: link
|
||||
loop:
|
||||
- db.intern
|
||||
- "db.{{ ansible_domain }}"
|
||||
- "db.{{ ipaddr_lan_threeoct }}"
|
||||
notify: restart bind
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue