knot: validate zonefiles before deploying
This commit is contained in:
parent
89d265190b
commit
add9cf1a31
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
owner: knot
|
owner: knot
|
||||||
group: knot
|
group: knot
|
||||||
mode: 0640
|
mode: 0640
|
||||||
|
validate: /usr/bin/kzonecheck -v %s
|
||||||
vars:
|
vars:
|
||||||
zone: "{{ hostvars[inventory_hostname]['knot_zone_' + item.1] }}"
|
zone: "{{ hostvars[inventory_hostname]['knot_zone_' + item.1] }}"
|
||||||
loop: "{{ knot_zone_groups | subelements('zones') }}"
|
loop: "{{ knot_zone_groups | subelements('zones') }}"
|
||||||
|
|
Loading…
Reference in a new issue