ansible-bind-role/roles/bind/tasks/main.yaml
2020-05-03 23:20:11 +02:00

23 lines
383 B
YAML

---
- 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