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