mount atlas data share
This commit is contained in:
parent
d5fdceb9d1
commit
4946f503a2
3 changed files with 15 additions and 1 deletions
|
@ -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