ansible-roles/postfix/tasks/main.yml

18 lines
412 B
YAML

---
- name: check if main.cf is default
shell: grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -
changed_when: False
check_mode: no
register: default_main_cf
tags:
- postfix
- include: minimal.yml
when: postfix_packmail == False
- include: packmail.yml
when: postfix_packmail == True
- include: slow_transport.yml
when: postfix_slow_transport_include