Mount smb home next to local home directory.
This commit is contained in:
parent
1c14ea3939
commit
8aec6687d7
1 changed files with 24 additions and 3 deletions
|
@ -3,6 +3,8 @@
|
|||
apt:
|
||||
name:
|
||||
- sssd-ldap
|
||||
- libpam-mount
|
||||
- cifs-utils
|
||||
state: latest
|
||||
|
||||
- name: add URI to ldap.conf
|
||||
|
@ -38,9 +40,28 @@
|
|||
line: "session optional pam_mkhomedir.so"
|
||||
insertafter: "# end of pam-auth-update config"
|
||||
|
||||
# command: /usr/sbin/pam-auth-update --enable mkhomedir
|
||||
|
||||
## oddjob-mkhomedir works only with sec=sys for the NFSv4 share
|
||||
- name: configure pam_mount
|
||||
blockinfile:
|
||||
dest: /etc/security/pam_mount.conf.xml
|
||||
block: |
|
||||
<volume
|
||||
fstype="cifs"
|
||||
server="smb.steinbeisschule-reutlingen.de"
|
||||
path="DOCS/fvs/home/"
|
||||
mountpoint="~/winhome"
|
||||
/>
|
||||
<!--volume
|
||||
fstype="fuse"
|
||||
path="sshfs#%(USER)@homes:"
|
||||
mountpoint="/home/%(USER)"
|
||||
options="StrictHostKeyChecking=no,allow_root"
|
||||
/>
|
||||
<volume
|
||||
path="/home/%(USER)"
|
||||
mountpoint="~"
|
||||
options="bind"
|
||||
/-->
|
||||
insertafter: "<!-- Volume definitions -->"
|
||||
|
||||
- name: provide identities from directory
|
||||
template:
|
||||
|
|
Loading…
Add table
Reference in a new issue