1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-29 00:23:34 +02:00
2021-12-01 19:13:34 +01:00

16 lines
433 B
YAML

---
- 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