From 4946f503a2332be5fd682cfadcad41deb1dd3fe5 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 11 Apr 2023 17:27:21 +0200 Subject: [PATCH] mount atlas data share --- README.md | 2 +- roles/common/tasks/main.yml | 3 +++ roles/system/tasks/main.yml | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d2a9b4..bb7964f 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +I should investigate what is a good method to do this. diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 7a8f229..8410bbb 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -5,3 +5,6 @@ state: latest update_cache: yes cache_valid_time: 86400 # One day +- name: Install packages + apt: + pkg: sshfs diff --git a/roles/system/tasks/main.yml b/roles/system/tasks/main.yml index 93ff9d8..d6b78aa 100644 --- a/roles/system/tasks/main.yml +++ b/roles/system/tasks/main.yml @@ -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"