diff --git a/tasks/main.yml b/tasks/main.yml index 7604fb0..86017d8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -70,7 +70,7 @@ ansible.builtin.template: src: zone.j2 dest: "{{ dns_datadir }}/{{ item.name }}.db" - validate: named-checkzone {{ item.name }} {{ dns_datadir }}/{{ item.name }}.db + validate: named-checkzone {{ item.name }} %s mode: "0640" owner: "{{ dns_owner }}" group: "{{ dns_group }}"