Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 608b757d authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

refactor(ynh_setup): new task to create backup directory and force symlink

parent 5ba58e75
No related branches found
No related tags found
1 merge request!35Resolve "fix: symlink /home/yunohost.backup/archives fails on creation"
Pipeline #6705 passed with warnings
...@@ -35,6 +35,15 @@ ...@@ -35,6 +35,15 @@
- pkg - pkg
- linux - 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 - name: Create data and config subdirs of Yunohost
ansible.builtin.file: ansible.builtin.file:
path: "{{ item.path }}" path: "{{ item.path }}"
...@@ -51,6 +60,7 @@ ...@@ -51,6 +60,7 @@
src: "{{ item.path }}" src: "{{ item.path }}"
dest: "{{ item.link }}" dest: "{{ item.link }}"
state: link state: link
force: yes
with_items: with_items:
- "{{ ynh_data_dirs }}" - "{{ ynh_data_dirs }}"
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment