unbound: Allow setting config name

This commit is contained in:
Timo Makinen 2025-06-17 20:16:01 +00:00
parent 06889e36b2
commit 911f22d3a5

View file

@ -38,7 +38,7 @@
- name: Copy config - name: Copy config
ansible.builtin.template: ansible.builtin.template:
dest: "{{ unbound_confdir }}/unbound.conf" dest: "{{ unbound_confdir }}/unbound.conf"
src: "unbound.conf.{{ inventory_hostname }}.j2" src: "{{ unbound_config | default('unbound.conf.' + inventory_hostname + '.j2') }}"
mode: "0644" mode: "0644"
owner: root owner: root
group: "{{ ansible_wheel }}" group: "{{ ansible_wheel }}"