From 9d548202bc2daee41105b389c37156a23f928455 Mon Sep 17 00:00:00 2001
From: s3lph <account-gitlab-ideynizv@kernelpanic.lol>
Date: Wed, 3 Nov 2021 00:22:21 +0100
Subject: [PATCH] postfixadmin: make setup password hash idempotent

---
 roles/postfixadmin/templates/config.local.php.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/postfixadmin/templates/config.local.php.j2 b/roles/postfixadmin/templates/config.local.php.j2
index 2275835..8545b88 100644
--- a/roles/postfixadmin/templates/config.local.php.j2
+++ b/roles/postfixadmin/templates/config.local.php.j2
@@ -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) }}';