forked from evolix/ansible-roles
evolinux-base: update hostname in default postfix config
This commit is contained in:
parent
606da239a5
commit
0ad39a1be7
|
@ -12,6 +12,24 @@
|
||||||
- packages
|
- packages
|
||||||
- postfix
|
- 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
|
- name: fetch users list
|
||||||
shell: getent passwd | cut -d":" -f 1 | grep -v root
|
shell: getent passwd | cut -d":" -f 1 | grep -v root
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
|
Loading…
Reference in a new issue