summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-09-10 00:05:54 +0200
committerAhmed AbdelHalim <[email protected]>2025-09-10 00:05:54 +0200
commit572487c14bd420a9c03e85a1bac4485f7dd3d6a9 (patch)
tree8de2bbf8ab27d02b25010d3513ca3372b01f550a
parent8f56a9bdbac230bf7510f305f2bc94c3bea99c89 (diff)
Fix password policy on debian don't have gnome installed by default
-rw-r--r--roles/password_policy/templates/debian-pam-pw.j22
1 files changed, 2 insertions, 0 deletions
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