30 lines
625 B
YAML
30 lines
625 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- ansible-role-elasticsearch
|
|
vars:
|
|
elasticsearch_password: mysecret
|
|
elasticsearch_heap_size: 512m
|
|
elasticsearch_users:
|
|
toto:
|
|
password: supers3cret
|
|
roles:
|
|
- viewer
|
|
kibana_system:
|
|
password: supertest2
|
|
elasticsearch_index_templates:
|
|
test:
|
|
index_patterns:
|
|
- 'hello*'
|
|
settings:
|
|
index:
|
|
number_of_replicas: 1
|
|
mappings:
|
|
metrics:
|
|
type: short
|
|
|
|
pre_tasks:
|
|
- name: update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|