feat: add ilm policy

This commit is contained in:
Adrien Waksberg 2022-02-17 10:52:15 +01:00
parent 7bf3927302
commit bcac417a5f
4 changed files with 99 additions and 0 deletions

View file

@ -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 }}'