4 # Set Debconf to not configure Postfix at all:
5 - name: configure debconf(1) to not configure Postfix
12 question=postfix/main_mailer_type
13 value="No configuration"
16 - name: install "postfix" package
25 - name: setup "/etc/mailname"
38 - name: set Posfix "myorigin"
43 dest=/etc/postfix/main.cf
45 line="myorigin = /etc/mailname"
52 - name: set Posfix "myhostname"
57 dest=/etc/postfix/main.cf
59 line="myhostname = {{ postfix_mailname }}"
66 - name: set Posfix "mydestination"
71 dest=/etc/postfix/main.cf
72 line="mydestination = {{ postfix_mailname }}, localhost"
73 regexp="^mydestination"
77 - name: set Posfix "inet_interfaces"
82 dest=/etc/postfix/main.cf
83 line="inet_interfaces = {{ postfix_interfaces }}"
84 regexp="^inet_interfaces"
88 - name: set Posfix "relayhost"
93 dest=/etc/postfix/main.cf
94 line="relayhost = {{ smtp_relay_host }}"
99 - name: ensure service "postfix" is enabled and started