---
- name: restart dnsdist
  service: name=dnsdist state=restarted

---
- name: check config and restart dnsdist
  command: dnsdist --check-config -C /etc/dnsdist/dnsdist.conf
  notify: restart dnsdist

- name: restart dnsdist
  service: name=dnsdist state=restarted

Add a check and restart handler
Add a check and restart handler
