knot: validate zonefiles before deploying

This commit is contained in:
s3lph 2020-11-20 04:18:14 +01:00
parent 89d265190b
commit add9cf1a31

View file

@ -32,6 +32,7 @@
owner: knot
group: knot
mode: 0640
validate: /usr/bin/kzonecheck -v %s
vars:
zone: "{{ hostvars[inventory_hostname]['knot_zone_' + item.1] }}"
loop: "{{ knot_zone_groups | subelements('zones') }}"