From 911f22d3a5273b74383d84c4d3966d5880a392e6 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Tue, 17 Jun 2025 20:16:01 +0000 Subject: [PATCH] unbound: Allow setting config name --- roles/unbound/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/unbound/tasks/main.yml b/roles/unbound/tasks/main.yml index a9f4f6d..5ee92b6 100644 --- a/roles/unbound/tasks/main.yml +++ b/roles/unbound/tasks/main.yml @@ -38,7 +38,7 @@ - name: Copy config ansible.builtin.template: dest: "{{ unbound_confdir }}/unbound.conf" - src: "unbound.conf.{{ inventory_hostname }}.j2" + src: "{{ unbound_config | default('unbound.conf.' + inventory_hostname + '.j2') }}" mode: "0644" owner: root group: "{{ ansible_wheel }}"