From e2bb2672f9dcc59bc6fadbb59d1bf1c4f908c736 Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Sun, 23 Jan 2022 02:08:56 +0100 Subject: [PATCH] pam create home directory on login --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 82ee323..9449c7c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -73,5 +73,11 @@ - nscd - sssd + - name: Enable pam_mkhomedirs + ansible.builtin.lineinfile: + regexp: ^session required pam_mkhomedir.so + line: session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 + insertbefore: BOF + when: - ldap_uris | length > 0