evolinux-base: update hostname in default postfix config

This commit is contained in:
Victor LABORIE 2017-04-25 15:50:22 +02:00
parent 606da239a5
commit 0ad39a1be7

View file

@ -12,6 +12,24 @@
- packages
- postfix
- name: configure postfix myhostname
lineinfile:
dest: /etc/postfix/main.cf
state: present
line: "myhostname = {{ evolinux_hostname }}"
regexp: '^myhostname'
tags:
- postfix
- name: configure postfix mynetworks
lineinfile:
dest: /etc/postfix/main.cf
state: present
line: "mydestination = {{ evolinux_hostname }}, localhost.localdomain, , localhost"
regexp: '^mydestination'
tags:
- postfix
- name: fetch users list
shell: getent passwd | cut -d":" -f 1 | grep -v root
check_mode: no