---

- name: Install postfix
  yum: name=postfix state=latest

- name: Allow smtp through the firewall
  firewalld: port=smtp permanent=true state=enabled immediate=yes

---

- name: Install postfix
  yum: name={{ item }} state=latest
  with_items:
    - postfix
    - dovecot
    - dovecot-msql

- name: Allow smtp through the firewall
  firewalld: port=smtp permanent=true state=enabled immediate=yes

Work on the mail server
Work on the mail server
