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

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

View file

@ -43,3 +43,14 @@
content: "{{ cert.stdout }}" content: "{{ cert.stdout }}"
mode: 0600 mode: 0600
when: not cert_stat.stat.exists 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"