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