Use nfs instead of cifs and adjust to new nextcloud data backup.
This commit is contained in:
9
nas.yaml
9
nas.yaml
@@ -24,11 +24,11 @@
|
||||
|
||||
- name: Mount nas volume
|
||||
ansible.posix.mount:
|
||||
src: //192.168.178.50/data
|
||||
src: 192.168.178.50:/data
|
||||
path: /media/nas
|
||||
state: mounted
|
||||
fstype: cifs
|
||||
opts: username=Chris,password=396BZ%LYHvNwuJfw
|
||||
fstype: nfs
|
||||
# opts: username=Chris,password=396BZ%LYHvNwuJfw
|
||||
become: yes
|
||||
|
||||
- name: Backup docker data to nas
|
||||
@@ -39,6 +39,9 @@
|
||||
shell: rsync -a /media/backup/hetzner /media/nas/Odroid/hetzner
|
||||
become: yes
|
||||
|
||||
- name: Backup nextcloud data to nas
|
||||
shell: rsync -a /media/backup/nextcloud /media/nas/Odroid/nextcloud
|
||||
|
||||
- name: Umount nas volume
|
||||
ansible.posix.mount:
|
||||
path: /media/nas
|
||||
|
||||
Reference in New Issue
Block a user