From a8a7aa6f68ecbcf99fd3db6a0649dbb5e675e578 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Wed, 25 Oct 2017 15:39:47 +1300 Subject: [PATCH] Exclude SMTP server --- tasks/communication.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/communication.yml b/tasks/communication.yml index 6bb68a9..291ae85 100644 --- a/tasks/communication.yml +++ b/tasks/communication.yml @@ -19,6 +19,7 @@ regexp: "relayhost =", line: "relayhost = {{ relayhost }}" } + when: "'SMTP' not in inventory_hostname" - name: Ensure Postfix is Started/Enabled service: