fix: improve readability of bind9 configuration and update variable registration

This commit is contained in:
Daniel Akulenok
2026-02-06 13:46:09 +01:00
parent cdcc4cbbda
commit 907735c294
2 changed files with 9 additions and 3 deletions

View File

@@ -27,5 +27,11 @@ bind9_default_config:
options:
directory: "{{ bind9_working_directory }}"
bind9_config: "{{ [bind9_default_config, bind9_group_config, bind9_site_config, bind9_host_config] | community.general.lists_mergeby('name', recursive=true, list_merge='append_rp')
}}"
bind9_config: >-
{{
[bind9_default_config,
bind9_group_config,
bind9_site_config,
bind9_host_config] |
community.general.lists_mergeby('name', recursive=true, list_merge='append_rp')
}}

View File

@@ -50,7 +50,7 @@
loop: "{{ bind9_config }}"
loop_control:
label: "{{ item.name }}"
register: _template_result
register: bind9_template_result
- name: Validate configuration using named-checkconf
ansible.builtin.command: