Implement cifs caching with cachefilesd.
This commit is contained in:
parent
e57c9e5b5c
commit
6c7209e82b
1 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
- libpam-mount
|
- libpam-mount
|
||||||
- cifs-utils
|
- cifs-utils
|
||||||
- nfs-common
|
- nfs-common
|
||||||
|
- cachefilesd
|
||||||
- hxtools
|
- hxtools
|
||||||
- davfs2
|
- davfs2
|
||||||
state: latest
|
state: latest
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
server="{{ smb_server }}"
|
server="{{ smb_server }}"
|
||||||
path="{{ smb_share }}"
|
path="{{ smb_share }}"
|
||||||
mountpoint="/srv/samba/schools/default-school"
|
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>
|
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>sddm</user><user>{{ localuser }}</user></or></not>
|
||||||
</volume>
|
</volume>
|
||||||
insertafter: "<!-- Volume definitions -->"
|
insertafter: "<!-- Volume definitions -->"
|
||||||
|
@ -45,6 +46,12 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
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
|
- name: Prepare persistent user cache base directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /var/cache/user/
|
path: /var/cache/user/
|
||||||
|
|
Loading…
Add table
Reference in a new issue