mount atlas data share

This commit is contained in:
Pim Kunis 2023-04-11 17:27:21 +02:00
parent d5fdceb9d1
commit 4946f503a2
3 changed files with 15 additions and 1 deletions

View file

@ -27,4 +27,4 @@ Another options would be HiDrive S3 from Strato.
## TODO: offline backups
Another improvement to our backup system is to incorporate offline backups.
I should investigate what is a good method to do this.
I should investigate what is a good method to do this.

View file

@ -5,3 +5,6 @@
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
- name: Install packages
apt:
pkg: sshfs

View file

@ -43,3 +43,14 @@
content: "{{ cert.stdout }}"
mode: 0600
when: not cert_stat.stat.exists
- name: Create point mount for atlas data
file:
path: /mnt/atlas
state: directory
- name: Mount atlas data
mount:
src: "lewis@atlas.lan:"
path: "/mnt/atlas"
state: mounted
fstype: fuse.sshfs
opts: "noauto,x-systemd.automount,_netdev,idmap=user,allow_other,reconnect,ro"