From 654f1e675d9aaddec8fd28b5dea0e75641024b61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de>
Date: Fri, 3 Sep 2021 11:53:03 +0200
Subject: [PATCH] feat: set random password only on creation

---
 tasks/create_users_groups.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks/create_users_groups.yml b/tasks/create_users_groups.yml
index e2bd00c..59b7764 100644
--- a/tasks/create_users_groups.yml
+++ b/tasks/create_users_groups.yml
@@ -40,5 +40,5 @@
     shell: "{{ item.value.shell | default('/bin/bash') }}"
     state: "{{ item.value.state | default('present') }}"
     uid: "{{ item.value.uid | default(omit) }}"
-    update_password: always
+    update_password: on_create
   with_dict: "{{ vault_users }}"
-- 
GitLab