28 lines
575 B
YAML
28 lines
575 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
|
|
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
|