mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 00:28:05 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
15
roles/seafile/tasks/archive_post.yml
Normal file
15
roles/seafile/tasks/archive_post.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Compress previous version
|
||||
command: tar cJf {{ seafile_root_dir }}/archives/{{ seafile_current_version.stdout }}.txz ./
|
||||
environment:
|
||||
XZ_OPT: -T0
|
||||
args:
|
||||
chdir: "{{ seafile_root_dir }}/archives/{{ seafile_current_version.stdout }}"
|
||||
warn: False
|
||||
tags: seafile
|
||||
|
||||
- name: Remove archive directory
|
||||
file: path={{ seafile_root_dir }}/archives/{{ seafile_current_version.stdout }} state=absent
|
||||
tags: seafile
|
||||
|
Reference in New Issue
Block a user