postfixadmin: make setup password hash idempotent
This commit is contained in:
parent
489ea44b2f
commit
22b9984607
1 changed files with 2 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
|||
<?php
|
||||
|
||||
{{ ansible_managed | comment(decoration='// ') }}
|
||||
{% set _salt = inventory_hostname | | hash("sha512") | regex_replace("^(.{22}).*$", "\1") %}
|
||||
|
||||
$CONF['configured'] = true;
|
||||
$CONF['setup_password'] = '{{ postfixadmin_setup_password | password_hash("bcrypt", 65534 | random(seed=inventory_hostname) | string) }}';
|
||||
$CONF['setup_password'] = '{{ postfixadmin_setup_password | password_hash("bcrypt", _salt) }}';
|
||||
|
||||
$CONF['default_language'] = '{{ postfixadmin_default_language }}';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue