From 9d9fb519b0be60e4ab72b63abb2185beefe18818 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 10 Sep 2025 00:05:54 +0200 Subject: Fix password policy on debian don't have gnome installed by default --- roles/password_policy/templates/debian-pam-pw.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/password_policy/templates/debian-pam-pw.j2 b/roles/password_policy/templates/debian-pam-pw.j2 index dceedf97..323aa41d 100644 --- a/roles/password_policy/templates/debian-pam-pw.j2 +++ b/roles/password_policy/templates/debian-pam-pw.j2 @@ -44,6 +44,8 @@ password requisite pam_deny.so # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around password required pam_permit.so +{% if ansible_distribution == "Ubuntu" %} # and here are more per-package modules (the "Additional" block) password optional pam_gnome_keyring.so +{% endif %} # end of pam-auth-update config -- cgit v1.2.3