ansible-role-postfix/tasks/main.yml

34 lines
1.2 KiB
YAML
Raw Normal View History

2020-06-08 15:18:58 +02:00
---
2024-02-16 17:22:21 +01:00
- name: SMTP packages
ansible.builtin.import_tasks: smtp-common-packages.yml
- name: DKIM management
ansible.builtin.import_tasks: dkim.yml
when: postfix_dkim_enabled
2024-02-16 17:22:21 +01:00
- name: ARC management
ansible.builtin.import_tasks: arc.yml
when: postfix_arc_enabled
- name: SRS support
ansible.builtin.import_tasks: postsrsd.yml
2022-06-06 13:00:51 +02:00
when: postfix_srs_sender_enabled or postfix_srs_receiver_enabled
2024-02-16 17:22:21 +01:00
- name: SPF policy check
ansible.builtin.import_tasks: postfix_spf_policy.yml
2021-12-05 16:08:15 +01:00
when: postfix_spf_policy_install
2024-02-16 17:22:21 +01:00
- 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
2020-06-08 16:57:40 +02:00
when: ansible_distribution_file_variety == "RedHat"
2024-02-16 17:22:21 +01:00
- name: SASL auth
ansible.builtin.import_tasks: smtp-sasl-auth.yml
2020-06-08 16:57:40 +02:00
when:
- postfix_use_sasl_auth | bool
- postfix_relay_client | bool
2024-02-16 17:22:21 +01:00
- name: Postfix as a relay server
ansible.builtin.import_tasks: postfix-relay-server.yml
2020-06-08 16:57:40 +02:00
when: postfix_smtpd_server | bool
2024-02-16 17:22:21 +01:00
- name: Manage the letsencrypt certificates
ansible.builtin.import_tasks: postfix-letsencrypt-hook.yml
2020-06-08 16:57:40 +02:00
when: postfix_use_letsencrypt | bool