ansible-roles/roles/nomad/tasks/archive_post.yml

15 lines
409 B
YAML

---
- name: Compress previous version
command: tar cf {{ nomad_root_dir }}/archives/{{ nomad_current_version }}.tar.zst --use-compress-program=zstd ./
args:
chdir: "{{ nomad_root_dir }}/archives/{{ nomad_current_version }}"
environment:
ZSTD_CLEVEL: 10
tags: nomad
- name: Remove archive dir
file: path={{ nomad_root_dir }}/archives/{{ nomad_current_version }} state=absent
tags: nomad