Switch to NFSv4 homes.
This commit is contained in:
parent
db054949a5
commit
0532ed1e17
4 changed files with 23 additions and 5 deletions
|
@ -4,6 +4,7 @@
|
|||
name:
|
||||
- libpam-mount
|
||||
- cifs-utils
|
||||
- nfs-common
|
||||
state: latest
|
||||
|
||||
- name: configure pam_mount
|
||||
|
@ -13,8 +14,22 @@
|
|||
<volume
|
||||
fstype="cifs"
|
||||
server="{{ smb_server }}"
|
||||
path="{{ smb_home }}"
|
||||
mountpoint="/home/%(DOMAIN_USER)"
|
||||
options="sec=krb5i,vers=3.0,cruid=%(USERUID),user=%(USER)"
|
||||
path="{{ smb_share }}"
|
||||
mountpoint="/media/%(DOMAIN_USER)/share"
|
||||
options="sec=krb5i,cruid=%(USERUID),user=%(USER)"
|
||||
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>sddm</user><user>virti</user></or></not></volume>
|
||||
insertafter: "<!-- Volume definitions -->"
|
||||
|
||||
- name: Mount NFSv4 home directory
|
||||
ansible.posix.mount:
|
||||
src: server:/default-school
|
||||
path: /srv/samba/schools/default-school
|
||||
opts: sec=krb5p,_netdev,x-systemd.automount,x-systemd.idle-timeout=60
|
||||
state: present
|
||||
fstype: nfs4
|
||||
|
||||
- name: Kill all user processes on logout
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/systemd/logind.conf
|
||||
line: KillUserProcesses=yes
|
||||
insertafter: '#KillUserProcesses=no'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue