From 608b757dfecfa04f377394ed8dd250ab7f0bd830 Mon Sep 17 00:00:00 2001 From: Arthur BOUDREAULT Date: Thu, 23 Jun 2022 16:44:14 +0200 Subject: [PATCH] refactor(ynh_setup): new task to create backup directory and force symlink --- roles/ynh_setup/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/ynh_setup/tasks/main.yml b/roles/ynh_setup/tasks/main.yml index 4198159..83faae0 100644 --- a/roles/ynh_setup/tasks/main.yml +++ b/roles/ynh_setup/tasks/main.yml @@ -35,6 +35,15 @@ - pkg - linux +- name: Create backup directory + ansible.builtin.file: + path: "/home/yunohost.backup/archives" + state: directory + mode: "0755" + tags: + - linux + when: ynh_data_dirs_enabled + - name: Create data and config subdirs of Yunohost ansible.builtin.file: path: "{{ item.path }}" @@ -51,6 +60,7 @@ src: "{{ item.path }}" dest: "{{ item.link }}" state: link + force: yes with_items: - "{{ ynh_data_dirs }}" tags: