diff --git a/roles/dnsmasq/tasks/manage_host.yml b/roles/dnsmasq/tasks/manage_host.yml index 9c94796454..6cc702e37f 100644 --- a/roles/dnsmasq/tasks/manage_host.yml +++ b/roles/dnsmasq/tasks/manage_host.yml @@ -58,6 +58,7 @@ - name: Manage host entry - add become: true + notify: Reload dnsmasq when: - cifmw_dnsmasq_host_state == 'present' ansible.builtin.copy: diff --git a/roles/dnsmasq/templates/cifmw-dnsmasq.conf.j2 b/roles/dnsmasq/templates/cifmw-dnsmasq.conf.j2 index a64251b100..2054bf4382 100644 --- a/roles/dnsmasq/templates/cifmw-dnsmasq.conf.j2 +++ b/roles/dnsmasq/templates/cifmw-dnsmasq.conf.j2 @@ -9,4 +9,4 @@ dhcp-leasefile=/var/lib/dnsmasq/cifmw-dnsmasq.leases {% endif %} conf-dir={{ cifmw_dnsmasq_basedir }},*.conf -dhcp-hostsdir="{{ cifmw_dnsmasq_basedir }}/dhcp-hosts.d" +dhcp-hostsfile="{{ cifmw_dnsmasq_basedir }}/dhcp-hosts.d"