feat: add variable to set major version

This commit is contained in:
Adrien Waksberg 2023-07-05 11:40:57 +02:00
parent 1fbea9082c
commit aaeea21e54
4 changed files with 4 additions and 1 deletions

View file

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

View file

@ -14,6 +14,7 @@ Install and configure Elasticsearch
## Role variables
* `elasticsearch_major_version` - set the major version (default: `7`)
* `elasticsearch_heap_size` - set the heap size (default: `1g`)
* `elasticsearch_config` - hash with the configuration (see [elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html))

View file

@ -1,4 +1,5 @@
---
elasticsearch_major_version: 7
elasticsearch_heap_size: 1g
elasticsearch_config: {}
elasticsearch_default_config:

View file

@ -13,7 +13,7 @@
- name: Add repository
ansible.builtin.apt_repository:
repo: deb https://artifacts.elastic.co/packages/7.x/apt stable main
repo: "deb https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main"
tags: elasticsearch
- name: Install package