first commit

This commit is contained in:
Stefan Schwarz 2020-05-03 23:20:11 +02:00
commit 04d35ca0a3
6 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,23 @@
---
- name: bind_install
apt:
name:
- bind9
- dnsutils
install_recommends: no
- name: bind_config
template:
dest: /etc/bind/named.conf
src: named.conf.j2
notify:
- bind_restart
- name: bind_zones
template:
dest: "/var/cache/bind/{{ item.key }}.zone"
src: zone.j2
loop: "{{ bind_zones | dict2items }}"
notify:
- bind_restart