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:
|
service:
|
||||||
name: ssh
|
name: ssh
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
- name: reload postfix
|
||||||
|
service:
|
||||||
|
name: postfix
|
||||||
|
state: reloaded
|
||||||
|
|
|
@ -16,8 +16,9 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/postfix/main.cf
|
dest: /etc/postfix/main.cf
|
||||||
state: present
|
state: present
|
||||||
line: "myhostname = {{ evolinux_hostname }}"
|
line: "myhostname = {{ evolinux_fqdn }}"
|
||||||
regexp: '^myhostname'
|
regexp: '^myhostname'
|
||||||
|
notify: reload postfix
|
||||||
tags:
|
tags:
|
||||||
- postfix
|
- postfix
|
||||||
|
|
||||||
|
@ -25,8 +26,9 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/postfix/main.cf
|
dest: /etc/postfix/main.cf
|
||||||
state: present
|
state: present
|
||||||
line: "mydestination = {{ evolinux_hostname }}, localhost.localdomain, , localhost"
|
line: "mydestination = {{ evolinux_fqdn }}, localhost.localdomain, , localhost"
|
||||||
regexp: '^mydestination'
|
regexp: '^mydestination'
|
||||||
|
notify: reload postfix
|
||||||
tags:
|
tags:
|
||||||
- postfix
|
- postfix
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue