From 9f814796919c28964ca8dee179f68ae80da4d9c0 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 3 May 2023 10:07:29 +0200 Subject: [PATCH] Run MTA-STS tasks only on selected hosts --- tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 972bce7..f39c431 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -34,7 +34,9 @@ ansible.builtin.include_tasks: mta-sts.yml tags: mta-sts loop: "{{ postfix_domains }}" - when: postfix_domains is defined + when: + - postfix_domains is defined + - postfix_type == "internet" args: apply: delegate_to: "{{ gateway_host }}"