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: