--- - name: "Create file: /etc/dnsmasq.conf" template: src: dnsmasq.conf.j2 dest: /etc/dnsmasq.conf validate: /usr/bin/dnsmasq --test -C %s notify: Restart dnsmasq