mount atlas data share
This commit is contained in:
parent
d5fdceb9d1
commit
4946f503a2
3 changed files with 15 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -5,3 +5,6 @@
|
|||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400 # One day
|
||||
- name: Install packages
|
||||
apt:
|
||||
pkg: sshfs
|
||||
|
|
|
@ -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"
|
||||
|
|
Reference in a new issue