---
- name: check and restart postfix
  command: /usr/sbin/postfix -c /etc/postfix check
  notify: 
   - restart postfix

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