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