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