---
- name: Install postfix mta
block:
- name: Install required packages
package:
name: '{{ item }}'
state: latest
with_items:
- postfix
- cyrus-sasl-plain
- mailx
become: True