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