ansible-role-postfix/tasks/packages.yml

29 lines
616 B
YAML
Raw Normal View History

2023-03-20 20:01:04 +01:00
---
- 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"
2023-03-20 20:01:04 +01:00
- name: "Packages | Install Unbound"
ansible.builtin.apt:
pkg:
- unbound
when: unbound_install is defined and unbound_install