From 3863b44715ee5a6043342ff84a2b998b9b10dd9e Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 11 Jun 2023 09:38:53 +0200 Subject: [PATCH] Install mta-sts-resolver only for internet type postfix installations --- tasks/packages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/packages.yml b/tasks/packages.yml index 2206f43..2aaddd3 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -13,9 +13,14 @@ - postfix - postfix-cdb - postfix-pcre - - postfix-mta-sts-resolver 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: