mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 17:16:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
18
roles/elasticsearch/tasks/backup.yml
Normal file
18
roles/elasticsearch/tasks/backup.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
|
||||
- name: Declare repo in ElasticSearch
|
||||
uri:
|
||||
url: http://localhost:{{ es_port }}/_snapshot/lbkp
|
||||
method: PUT
|
||||
body:
|
||||
type: fs
|
||||
settings:
|
||||
compress: True
|
||||
location: "{{ es_backup_dir }}"
|
||||
body_format: json
|
||||
register: es_lbkp
|
||||
until: es_lbkp.failed == False
|
||||
retries: 10
|
||||
delay: 10
|
||||
tags: es
|
||||
|
Reference in New Issue
Block a user