ansible-role-postfix/tasks/packages.yml

28 lines
616 B
YAML

---
- name: "Packages | Get installed packages"
ansible.builtin.package_facts:
manager: apt
- name: "Packages | Install packages"
ansible.builtin.apt:
pkg:
- fail2ban
- libsasl2-modules
- pflogsumm
- pfqueue
- postfix
- postfix-cdb
- postfix-pcre
cache_valid_time: 3600
- name: "Package | Install MTA-STS-Resolver"
ansible.builtin.apt:
pkg:
- postfix-mta-sts-resolver
when: postfix_type == "internet"
- name: "Packages | Install Unbound"
ansible.builtin.apt:
pkg:
- unbound
when: unbound_install is defined and unbound_install