1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-30 00:53:23 +02:00
ansible-roles/roles/includes/webapps_compress_archive.yml

14 lines
337 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
- name: Compress previous version
command: tar cf {{ root_dir }}/archives/{{ version }}.tar.zst --use-compress-program=zstd ./
environment:
ZSTD_CLEVEL: 10
args:
chdir: "{{ root_dir }}/archives/{{ version }}"
warn: False
- name: Remove archive dir
file: path={{ root_dir }}/archives/{{ version }} state=absent