From 65e2e26ce94c7b35b607d424682126d292ff982b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Thu, 7 Mar 2024 16:31:59 +0100
Subject: [PATCH] feat: install passlib library for user creation, because
 crypt library is deprecated and will be removed from Python 3.13

---
 tasks/install_packages.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tasks/install_packages.yml b/tasks/install_packages.yml
index 066b886..fee5d94 100644
--- a/tasks/install_packages.yml
+++ b/tasks/install_packages.yml
@@ -1,5 +1,11 @@
 ---
 ### PAKETINSTALLATIONEN SUBMISSION APPLICATION ###
+- name: install Ansible prerequisites
+  ansible.builtin.package:
+    name: 'python3-passlib'    # Python crypt is deprecated for user creation, use passlib instead
+    state: present
+    update_cache: true
+
 - name: Install/Update curl, libxerces-c-dev, rsync, tar, unzip, imagemagick, libtiff-tools, libxml2-utils
   ansible.builtin.apt:
     name: [
@@ -20,7 +26,7 @@
       'libtiff-tools'
     ]
     state: present
-    update_cache: "yes"
+    update_cache: true
 
 - name: uninstall outdated perl-modules packages from Debian 12 Bookworm VMs
   ansible.builtin.apt:
-- 
GitLab