--- - 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 }}" warn: False environment: ZSTD_CLEVEL: 10 tags: nomad - name: Remove archive dir file: path={{ nomad_root_dir }}/archives/{{ nomad_current_version }} state=absent tags: nomad