ansible-role-postfix/tasks/main.yml

34 lines
1.2 KiB
YAML

---
- name: SMTP packages
ansible.builtin.import_tasks: smtp-common-packages.yml
- name: DKIM management
ansible.builtin.import_tasks: dkim.yml
when: postfix_dkim_enabled
- name: ARC management
ansible.builtin.import_tasks: arc.yml
when: postfix_arc_enabled
- name: SRS support
ansible.builtin.import_tasks: postsrsd.yml
when: postfix_srs_sender_enabled or postfix_srs_receiver_enabled
- name: SPF policy check
ansible.builtin.import_tasks: postfix_spf_policy.yml
when: postfix_spf_policy_install
- name: Postfix configuration
ansible.builtin.import_tasks: smtp-configuration.yml
- name: Install and configure pflogsumm
ansible.builtin.import_tasks: postfix_pflogsumm.yml
- name: EL firewalld rules
ansible.builtin.import_tasks: postfix_firewalld.yml
when: ansible_distribution_file_variety == "RedHat"
- name: SASL auth
ansible.builtin.import_tasks: smtp-sasl-auth.yml
when:
- postfix_use_sasl_auth | bool
- postfix_relay_client | bool
- name: Postfix as a relay server
ansible.builtin.import_tasks: postfix-relay-server.yml
when: postfix_smtpd_server | bool
- name: Manage the letsencrypt certificates
ansible.builtin.import_tasks: postfix-letsencrypt-hook.yml
when: postfix_use_letsencrypt | bool