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 }}