---
- name: Check postfix
  command: postfix check
  when: postfix_check
  changed_when: false

- name: Restart postfix
  service:
    name: postfix
    state: restarted
