ansible-roles/roles/elasticsearch/tasks/backup.yml

19 lines
343 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
- name: Declare repo in ElasticSearch
uri:
url: http://localhost:{{ es_port }}/_snapshot/lbkp
method: PUT
body:
type: fs
settings:
compress: True
2022-01-25 15:00:05 +01:00
location: "{{ es_root_dir }}/backup"
2021-12-01 19:13:34 +01:00
body_format: json
register: es_lbkp
until: es_lbkp.failed == False
2022-01-25 15:00:05 +01:00
retries: 20
2021-12-01 19:13:34 +01:00
delay: 10
tags: es