From 49623f7f526e7a2a54690ab673815c55b2749a26 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 18 Sep 2025 18:32:37 +0200 Subject: [PATCH] fix(tasks): conditional result was 'None' of type 'NoneType' --- tasks/verify_zone_file.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/verify_zone_file.yml b/tasks/verify_zone_file.yml index 6e26152..6859f39 100644 --- a/tasks/verify_zone_file.yml +++ b/tasks/verify_zone_file.yml @@ -10,4 +10,4 @@ - name: "Fail when the last character of DNS zone file is not a newline: {{ bind_config_directory + '/' + zone.file }}" ansible.builtin.fail: msg: "Last character of DNS zone file is not a newline: {{ bind_config_directory + '/' + zone.file }}" - when: _bind9_zone_last_character.stdout | regex_search('.+') + when: _bind9_zone_last_character.stdout != ''