From c749244c692a18f395bda3db049763bc67332181 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sat, 18 Jul 2020 18:04:53 +0200 Subject: [PATCH] Set the 'daemon_directory' on RH based systems only. --- templates/main.cf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index 1a76798..fa90939 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -15,7 +15,9 @@ soft_bounce = no queue_directory = /var/spool/postfix command_directory = /usr/sbin +{% if ansible_distribution_file_variety == "RedHat" %} daemon_directory = /usr/libexec/postfix +{% endif %} data_directory = /var/lib/postfix mail_owner = postfix