[postfix] Don't install postfix-lmdb on RHEL < 8

The RHEL/EPEL 8 doesn't have postfix-lmdb package, so let's skip it for
older releases.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2026-02-26 10:17:08 +01:00 committed by Michal Konečný
commit f40260df77

View file

@ -9,8 +9,9 @@
- name: Make sure postfix-lmdb is installed
ansible.builtin.package:
state: presend
state: present
name: postfix-lmdb
when: not (ansible_distribution == "RedHat" and ansible_distribution_major_version <= "8")
tags:
- postfix
- base
@ -42,6 +43,7 @@
name: domain_can_mmap_files
state: true
persistent: true
when: not (ansible_distribution == "RedHat" and ansible_distribution_major_version <= "8")
notify:
- Restart postfix
tags: