From ee5dcb3858d4375eb0b40a91302b768dda917e8d Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Wed, 12 Jul 2023 15:19:04 +0200 Subject: [PATCH] Use temporary file. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}"