aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/group_vars/all/postfix.yml2
-rw-r--r--ansible/roles/postfix-satellite/tasks/postfix-satellite.yml4
2 files changed, 4 insertions, 2 deletions
diff --git a/ansible/group_vars/all/postfix.yml b/ansible/group_vars/all/postfix.yml
index 56516f1..107bbac 100644
--- a/ansible/group_vars/all/postfix.yml
+++ b/ansible/group_vars/all/postfix.yml
@@ -1 +1,3 @@
+postfix_satellite__mydomain: trygvis.io
+postfix_satellite__myorigin: trygvis.io
postfix__relayhost: "[trygvis.io]:587"
diff --git a/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml b/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml
index 46f2fea..5f8f02a 100644
--- a/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml
+++ b/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml
@@ -20,9 +20,9 @@
regexp: "^{{ item.key }} ="
with_items:
- key: "mydomain"
- value: "bitraf.no"
+ value: "{{ postfix_satellite__mydomain }}"
- key: "myorigin"
- value: "bitraf.no"
+ value: "{{ postfix_satellite__myorigin }}"
- key: "mydestination"
value: ""
- key: "smtp_sasl_auth_enable"