2020-02-09 14:15:24 +00:00
|
|
|
---
|
2022-02-17 09:52:15 +00:00
|
|
|
- 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
|
|
|
|
|
2020-02-09 14:15:24 +00:00
|
|
|
- name: copy index templates
|
|
|
|
elasticsearch_template:
|
|
|
|
name: '{{ item.key }}'
|
|
|
|
index_patterns: '{{ item.value.index_patterns }}'
|
|
|
|
settings: '{{ item.value.settings|default({}) }}'
|
|
|
|
mappings: '{{ item.value.mappings|default({}) }}'
|
|
|
|
loop: '{{ elasticsearch_index_templates|dict2items }}'
|
|
|
|
run_once: true
|
|
|
|
tags: elasticsearch
|