fixed cifs permissions, added cifs to nextcloud for persistent data

This commit is contained in:
Bastian de Byl
2022-10-03 19:30:52 -04:00
parent d5cadc560c
commit 6672384955
2 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,16 @@
register: cloud_owner
tags: cloud
- name: mount cloud cifs
become: true
ansible.posix.mount:
src: "{{ cloud_cifs_src }}"
path: "{{ cloud_path }}/data"
fstype: cifs
opts: "username=cloud,password={{ cloud_cifs_pass }},uid={{ cloud_owner.stat.uid }},gid={{ cloud_owner.stat.uid }}"
state: mounted
tags: cloud
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: cloud