mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2022-09-02 18:00
This commit is contained in:
14
roles/consul_template/tasks/archive_post.yml
Normal file
14
roles/consul_template/tasks/archive_post.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
|
||||
- name: Compress previous version
|
||||
command: tar cf {{ consul_tpl_root_dir }}/archives/{{ consul_tpl_current_version }}.tar.zst --use-compress-program=zstd ./
|
||||
args:
|
||||
chdir: "{{ consul_tpl_root_dir }}/archives/{{ consul_tpl_current_version }}"
|
||||
warn: False
|
||||
environment:
|
||||
ZSTD_CLEVEL: 10
|
||||
tags: consul,vault
|
||||
|
||||
- name: Remove archive dir
|
||||
file: path={{ consul_tpl_root_dir }}/archives/{{ consul_tpl_current_version }} state=absent
|
||||
tags: consul,vault
|
Reference in New Issue
Block a user