Use variable instead of group membership to install localhome

Use variable localhome to determines whether the localhome module is installed.
Default: localhome=false

Further changes:
- Move pam-exec from common-auth to common-session
- Move pam-mkhomedir before pam-mount to avoid double login on first use
  on localhome devices
This commit is contained in:
Raphael Dannecker 2025-03-19 11:08:57 +01:00
parent 3d01394820
commit 9f1c60eefd
8 changed files with 487 additions and 424 deletions

View file

@ -2,8 +2,8 @@
- name: enable pam_mkhomedir.so
lineinfile:
dest: /etc/pam.d/common-session
line: "session optional pam_mkhomedir.so umask=0077"
insertbefore: "session optional pam_mount.so"
line: "session optional pam_mkhomedir.so umask=0077"
insertbefore: '^session\s*optional\s*pam_mount.so'
- name: Patch sddm login screen to inform about localhome
blockinfile: