Install dnsmasq: pkg.installed: - name: dnsmasq rre.nu configuration file: file.managed: - name: /etc/dnsmasq.d/rre.conf - source: salt://dnsmasq/files/rre.conf - user: root - group: root - mode: "0644" start dnsmasq: service.running: - name: dnsmasq - enable: True - watch: - file: rre.nu configuration file