feat: add ilm policy
This commit is contained in:
parent
7bf3927302
commit
bcac417a5f
4 changed files with 99 additions and 0 deletions
tasks
|
@ -1,4 +1,14 @@
|
|||
---
|
||||
- name: copy ilm policies
|
||||
elasticsearch_ilm_policy:
|
||||
name: '{{ item.key }}'
|
||||
phases: '{{ item.value|default({}) }}'
|
||||
loop: '{{ elasticsearch_ilm_policies|dict2items }}'
|
||||
loop_control:
|
||||
label: '{{ item.key }}'
|
||||
run_once: true
|
||||
tags: elasticsearch
|
||||
|
||||
- name: copy index templates
|
||||
elasticsearch_template:
|
||||
name: '{{ item.key }}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue