fix(tasks): conditional result was 'None' of type 'NoneType'

This commit is contained in:
2025-09-18 18:25:11 +02:00
parent d8a04d3f1b
commit 5756bc8adb

View File

@ -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 }}"
failed_when: _bind9_zone_last_character.stdout | regex_search('.+') | default(false)
when: _bind9_zone_last_character.stdout | regex_search('.+')