feat: add variable to set master

This commit is contained in:
Adrien Waksberg 2023-10-20 13:37:37 +02:00
parent 0ab1bd2023
commit 96e0ab4b64
4 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
### Added
- feat: add variable to set master
- feat: manage user
- feat: add variable to set major version
- feat: add ilm policy

View file

@ -15,6 +15,7 @@ Install and configure Elasticsearch
## Role variables
* `elasticsearch_major_version` - set the major version (default: `7`)
* `elasticsearch_master` - set if the node is master (default: `true`)
* `elasticsearch_heap_size` - set the heap size (default: `1g`)
* `elasticsearch_api_user` - set the admin user (default: `elastic`)
* `elasticsearch_api_password` - set the password for api

View file

@ -1,5 +1,6 @@
---
elasticsearch_major_version: 8
elasticsearch_master: true
elasticsearch_api_user: elastic
elasticsearch_heap_size: 1g
elasticsearch_config: {}

View file

@ -7,3 +7,4 @@
ansible.builtin.import_tasks: service.yml
- name: Import data tasks
ansible.builtin.import_tasks: data.yml
when: elasticsearch_master