From d88c41af9a7d287775d9c8c7bf96974f91279f95 Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Mon, 31 Mar 2025 17:36:10 +0200 Subject: [PATCH] fix: Define variables for directories --- tasks/configuration.yml | 2 +- templates/dnsmasq.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configuration.yml b/tasks/configuration.yml index ad652cc..fd87136 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -19,7 +19,7 @@ - name: Deploy configuration ansible.builtin.template: src: dnsmasq.conf.j2 - dest: "{{ dnsmasq_conf_directory }}/etc/dnsmasq.d/dns.conf" + dest: "{{ dnsmasq_conf_directory }}/dns.conf" owner: root group: root mode: u=rw,g=r,o=r diff --git a/templates/dnsmasq.conf.j2 b/templates/dnsmasq.conf.j2 index 4963f5f..1be1535 100644 --- a/templates/dnsmasq.conf.j2 +++ b/templates/dnsmasq.conf.j2 @@ -49,4 +49,4 @@ rebind-localhost-ok cache-size=1024 # Définir le fichier des entrées personnalisées -addn-hosts=/srv/dnsmasq +addn-hosts={{ dnsmasq_records_directory }}