File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
elasticsearch :
3
+ version : 7
3
4
prefix :
4
5
config : >-
5
6
{%- if ansible_system == 'Linux' -%}
@@ -61,6 +62,6 @@ elasticsearch:
61
62
repository :
62
63
apt :
63
64
key_url : https://artifacts.elastic.co/GPG-KEY-elasticsearch
64
- repository : deb https://artifacts.elastic.co/packages/7 .x/apt stable main
65
+ repository : deb https://artifacts.elastic.co/packages/{{ vars.elasticsearch.version }} .x/apt stable main
65
66
plugins : {}
66
67
http_proxy :
Original file line number Diff line number Diff line change
1
+ ---
2
+ dependencies : []
3
+
4
+ galaxy_info :
5
+ author : " Punkt.de"
6
+ license : " MIT"
7
+ description : " Elasticsearch role for Proserver"
8
+ role_name : " proserver_elasticsearch"
9
+ namespace : " punktde"
10
+ min_ansible_version : " 2.15"
Original file line number Diff line number Diff line change 1
- {{ elasticsearch['elasticsearch.yml'] |to_nice_yaml(indent=2) }}
1
+ {% if elasticsearch .version is not defined or elasticsearch .version is version ('8' , '<' ) %}
2
+ {{ elasticsearch['elasticsearch.yml'] | to_nice_yaml(indent=2) }}
3
+ {% else %}
4
+ {{ elasticsearch['elasticsearch.yml'] | ansible.utils.remove_keys(target=['system_call_filter', 'bootstrap'] ) | to_nice_yaml(indent=2) }}
5
+ {% endif %}
You can’t perform that action at this time.
0 commit comments