postfixadmin: setup_password

This commit is contained in:
genofire 2020-07-22 21:36:31 +02:00
parent ba04341956
commit 8303673e3a
2 changed files with 6 additions and 1 deletions

View File

@ -1,10 +1,11 @@
---
mailserver_postfixadmin_domain: ""
mailserver_db_type: "pgsql"
mailserver_db_host: "localhost"
mailserver_db_name: "mailserver"
mailserver_db_user: "mailserver"
mailserver_db_password: "{{ lookup('password', 'credentials/' + inventory_hostname + '/mailserver/db_password length=15') }}"
#mailserver_postfixadmin_setup_password: "" # after postfixadmin-setup
mailserver_postfixadmin_domain: ""
mailserver_postfixadmin_mail_domain: "sum7.eu"
mailserver_postfixadmin_mail_admin: "admin@{{ mailserver_postfixadmin_mail_domain }}"
mailserver_postfixadmin_setup: ""

View File

@ -1,6 +1,10 @@
<?php
$CONF['configured'] = true;
{% if mailserver_postfixadmin_setup_password is defined %}
$CONF['setup_password'] = '{{ mailserver_postfixadmin_setup_password }}';
{% endif %}
$CONF['database_type'] = '{{ mailserver_db_type }}';
$CONF['database_host'] = '{{ mailserver_db_host }}';