fix: improve readability of bind9 configuration and update variable registration
This commit is contained in:
@@ -27,5 +27,11 @@ bind9_default_config:
|
|||||||
options:
|
options:
|
||||||
directory: "{{ bind9_working_directory }}"
|
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')
|
||||||
|
}}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
loop: "{{ bind9_config }}"
|
loop: "{{ bind9_config }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
register: _template_result
|
register: bind9_template_result
|
||||||
|
|
||||||
- name: Validate configuration using named-checkconf
|
- name: Validate configuration using named-checkconf
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
Reference in New Issue
Block a user