evolinux-base: use fqdn in default postfix config and add handler

This commit is contained in:
Victor LABORIE 2017-04-27 10:41:18 +02:00
parent 0ad39a1be7
commit 9dfe6fd175
2 changed files with 9 additions and 2 deletions

View file

@ -58,3 +58,8 @@
service:
name: ssh
state: reloaded
- name: reload postfix
service:
name: postfix
state: reloaded

View file

@ -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