Implement cifs caching with cachefilesd.

This commit is contained in:
Andreas B. Mundt 2023-12-21 22:39:30 +01:00
parent e57c9e5b5c
commit 6c7209e82b

View file

@ -5,6 +5,7 @@
- libpam-mount
- cifs-utils
- nfs-common
- cachefilesd
- hxtools
- davfs2
state: latest
@ -34,7 +35,7 @@
server="{{ smb_server }}"
path="{{ smb_share }}"
mountpoint="/srv/samba/schools/default-school"
options="sec=krb5i,cruid=%(USERUID),user=%(USER),gid=1010,file_mode=0770,dir_mode=0770,mfsymlinks,nobrl"
options="sec=krb5i,cruid=%(USERUID),user=%(USER),gid=1010,file_mode=0770,dir_mode=0770,mfsymlinks,nobrl,fsc"
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>sddm</user><user>{{ localuser }}</user></or></not>
</volume>
insertafter: "<!-- Volume definitions -->"
@ -45,6 +46,12 @@
state: directory
mode: '0755'
- name: Enable cachefilesd
ansible.builtin.replace:
path: /etc/default/cachefilesd
regexp: '^#RUN=yes'
replace: RUN=yes
- name: Prepare persistent user cache base directory
ansible.builtin.file:
path: /var/cache/user/