]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/postfix/tasks/main.yml
postfix: Add "postfix_mailname" variable
[AnsibleRoles.git] / roles / postfix / tasks / main.yml
index 3ab9edab26200dae941fde7e68cf63c3e71a09f2..d9497fa68129c223e7687e0c1cba487a83b0c835 100644 (file)
@@ -9,7 +9,7 @@
   debconf: >
     name=postfix
     question=postfix/mailname
-    value="{{ inventory_hostname }}"
+    value="{{ postfix_mailname }}"
     vtype=select
 
 - name: configure Postfix "destinations"
@@ -20,7 +20,7 @@
   debconf: >
     name=postfix
     question=postfix/destinations
-    value="$myhostname, localhost.$mydomain, localhost"
+    value="{{ postfix_mailname }}, $myhostname, localhost.$mydomain, localhost"
     vtype=select
 
 - name: install "postfix" package