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

15 lines
458 B
YAML

---
- name: Compress previous version
command: tar cf {{ diagrams_root_dir }}/archives/{{ diagrams_current_version }}.tar.zst --use-compress-program=zstd ./
environment:
ZST_CLEVEL: 10
args:
chdir: "{{ diagrams_root_dir }}/archives/{{ diagrams_current_version }}"
warn: False
tags: diagrams
- name: Remove the arachive directory
file: path={{ diagrams_root_dir }}/archives/{{ diagrams_current_version }} state=absent
tags: diagrams