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:
16
roles/consul_template/tasks/archive_pre.yml
Normal file
16
roles/consul_template/tasks/archive_pre.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
- name: Create the archive dir
|
||||
file: path={{ consul_tpl_root_dir }}/archives/{{ consul_tpl_current_version }} state=directory
|
||||
tags: consul,vault
|
||||
|
||||
- name: Backup previous version
|
||||
synchronize:
|
||||
src: "{{ consul_tpl_root_dir }}/{{ item }}"
|
||||
dest: "{{ consul_tpl_root_dir }}/archives/{{ consul_tpl_current_version }}/"
|
||||
compress: False
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
loop:
|
||||
- bin
|
||||
tags: consul,vault
|
||||
|
Reference in New Issue
Block a user