Merge branch '55-fix-symlink-home-yunohost-backup-archives-fails-on-creation' into 'main'
Resolve "fix: symlink /home/yunohost.backup/archives fails on creation" Closes #55 See merge request lydra/yunohost/ansible-yunohost!35
This commit is contained in:
commit
57250cd2c2
1 changed files with 10 additions and 0 deletions
|
@ -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 @@
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue