evolinux-base: use fqdn in default postfix config and add handler
This commit is contained in:
parent
0ad39a1be7
commit
9dfe6fd175
|
@ -58,3 +58,8 @@
|
|||
service:
|
||||
name: ssh
|
||||
state: reloaded
|
||||
|
||||
- name: reload postfix
|
||||
service:
|
||||
name: postfix
|
||||
state: reloaded
|
||||
|
|
|
@ -16,8 +16,9 @@
|
|||
lineinfile:
|
||||
dest: /etc/postfix/main.cf
|
||||
state: present
|
||||
line: "myhostname = {{ evolinux_hostname }}"
|
||||
line: "myhostname = {{ evolinux_fqdn }}"
|
||||
regexp: '^myhostname'
|
||||
notify: reload postfix
|
||||
tags:
|
||||
- postfix
|
||||
|
||||
|
@ -25,8 +26,9 @@
|
|||
lineinfile:
|
||||
dest: /etc/postfix/main.cf
|
||||
state: present
|
||||
line: "mydestination = {{ evolinux_hostname }}, localhost.localdomain, , localhost"
|
||||
line: "mydestination = {{ evolinux_fqdn }}, localhost.localdomain, , localhost"
|
||||
regexp: '^mydestination'
|
||||
notify: reload postfix
|
||||
tags:
|
||||
- postfix
|
||||
|
||||
|
|
Loading…
Reference in a new issue