From e56498dc7832b804de1fc2259ea5af23170984aa Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 13 Dec 2020 00:42:48 +0100 Subject: [PATCH] hatoria: Define creating custom_archive_directory for cloud-bnet --- playbooks/host_hatoria.banananet.work.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/playbooks/host_hatoria.banananet.work.yml b/playbooks/host_hatoria.banananet.work.yml index 4d207a4..44fff6e 100644 --- a/playbooks/host_hatoria.banananet.work.yml +++ b/playbooks/host_hatoria.banananet.work.yml @@ -141,3 +141,24 @@ difficulty: normal motd: ChaosCraft view-distance: 16 + tasks: + - name: Configure custom archive Nextcloud directory on hdd for personal usages + tags: + - cloud.banananet.work + - custom_archive_directory + vars: + archive_directory: "{{ global_hdd_directory }}/{{ bnet_cloud_domain }}~personal-archive" + block: + - name: Create archive directory + file: + state: directory + path: "{{ archive_directory }}" + owner: "{{ bnet_cloud_username }}" + group: "{{ bnet_cloud_username }}" + mode: "u=rwx,g=rx,o=" + register: archive_directory_task + - name: Show message to user about path on changes + debug: + msg: >- + Changed custom archive directory: Please ensure you (re-)configure this directory properly on your Nextcloud instance: {{ archive_directory | quote }} + when: archive_directory_task.changed