hatoria: Define creating custom_archive_directory for cloud-bnet

master
Felix Stupp 4 years ago
parent 9d62d35564
commit e56498dc78
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -141,3 +141,24 @@
difficulty: normal difficulty: normal
motd: ChaosCraft motd: ChaosCraft
view-distance: 16 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

Loading…
Cancel
Save