diff --git a/tasks/main.yml b/tasks/main.yml index 9449c7c..0be5705 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -75,6 +75,7 @@ - name: Enable pam_mkhomedirs ansible.builtin.lineinfile: + path: /etc/pam.d/common-session regexp: ^session required pam_mkhomedir.so line: session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 insertbefore: BOF