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 9a9d83bb 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
No related merge requests found
Pipeline #6704 failed
......@@ -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 }}"
......@@ -48,14 +57,15 @@
- name: Create symbolic links for Yunohost subdirs
ansible.builtin.file:
src: "{{ item.path }}"
dest: "{{ item.link }}"
src: "{{ item.path }}"
dest: "{{ item.link }}"
state: link
force: yes
with_items:
- "{{ ynh_data_dirs }}"
- "{{ ynh_data_dirs }}"
tags:
- linux
when: ynh_data_dirs_enabled
- linux
when: ynh_data_dirs_enabled
- name: Test if Yunohost is already installed
ansible.builtin.stat: path=/etc/yunohost/installed
......
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