Ver código fonte

ability to specify mailname

master
pai
commit
bef4b6b2b0
3 arquivos alterados com 9 adições e 2 exclusões
  1. +2
    -0
      defaults/main.yml
  2. +6
    -0
      tasks/main.yml
  3. +1
    -2
      templates/main.cf.j2

+ 2
- 0
defaults/main.yml Ver arquivo

@@ -1,2 +1,4 @@
mailname: "{{inventory_hostname}}"

postfix_postfixadmin_mysql_database: postfixadmin
postfix_postfixadmin_mysql_username: postfix

+ 6
- 0
tasks/main.yml Ver arquivo

@@ -13,6 +13,12 @@
dest: /etc/postfix/main.cf
notify: reload postfix

- name: mailname
copy:
content: "{{mailname}}"
dest: /etc/mailname
notify: reload postfix

- include: postfixadmin.yml

- name: configuration pull directory


+ 1
- 2
templates/main.cf.j2 Ver arquivo

@@ -1,10 +1,9 @@
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no


Carregando…
Cancelar
Salvar