mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 09:07:03 +02:00
Update to 2022-01-25 15:00
This commit is contained in:
15
roles/elasticsearch/tasks/archive_pre.yml
Normal file
15
roles/elasticsearch/tasks/archive_pre.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Create the archive dir
|
||||
file: path={{ es_root_dir }}/archives/{{ es_current_version }} state=directory
|
||||
tags: es
|
||||
|
||||
- name: Archive current version
|
||||
synchronize:
|
||||
src: "{{ es_root_dir }}/app"
|
||||
dest: "{{ es_root_dir }}/archives/{{ es_current_version }}/"
|
||||
compress: False
|
||||
delete: True
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
tags: es
|
||||
|
Reference in New Issue
Block a user