File tree Expand file tree Collapse file tree 5 files changed +0
-32
lines changed Expand file tree Collapse file tree 5 files changed +0
-32
lines changed Original file line number Diff line number Diff line change 30
30
tasks :
31
31
- name : Enable Elastic installation on RHEL 9
32
32
ansible.builtin.set_fact :
33
- elasticstack_rpm_workaround : true
34
33
when : ansible_os_family == 'RedHat' and ansible_distribution_major_version >= "9"
35
34
- name : Include Redis
36
35
ansible.builtin.include_role :
Original file line number Diff line number Diff line change 4
4
collections :
5
5
- netways.elasticstack
6
6
vars :
7
- elasticstack_rpm_workaround : true
8
7
elasticstack_collection_managed : false
9
8
elasticstack_release : " {{ lookup('env', 'ELASTIC_RELEASE') | int}}"
10
9
elasticstack_no_log : false
Original file line number Diff line number Diff line change 7
7
- netways.elasticstack
8
8
vars :
9
9
elasticstack_variant : oss
10
- elasticstack_rpm_workaround : true
11
10
elasticstack_release : 7
12
11
elasticstack_no_log : false
13
12
tasks :
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ elasticstack_kibana_port: 5601
20
20
elasticstack_override_beats_tls : false
21
21
elasticstack_release : 8
22
22
elasticstack_repo_key : https://artifacts.elastic.co/GPG-KEY-elasticsearch
23
- elasticstack_rpm_workaround : false
24
23
elasticstack_security : true
25
24
elasticstack_variant : elastic
26
25
elasticstack_force_pip : false
Original file line number Diff line number Diff line change 1
1
---
2
- # See https://github.com/elastic/elasticsearch/issues/85876
3
- # for more information why this is needed
4
- - name : Workaround for EL > 8
5
- when :
6
- - ansible_distribution_major_version >= "9"
7
- block :
8
-
9
- - name : Show a warning
10
- ansible.builtin.debug :
11
- msg : " For this workaround to work, please set elasticstack_rpm_workaround to true"
12
- when :
13
- - not elasticstack_rpm_workaround | bool
14
-
15
- - name : Enable workaround for rpm keys
16
- when :
17
- - elasticstack_rpm_workaround | bool
18
- block :
19
-
20
- - name : Install crypto-policies-scripts
21
- ansible.builtin.package :
22
- name : crypto-policies-scripts
23
-
24
- # since we don't expect to have that workaround for long
25
- # we can skip having idempotency checks fixed
26
- - name : Set Crypto policies to legacy
27
- ansible.builtin.command : " update-crypto-policies --set LEGACY"
28
- changed_when : false
29
-
30
2
- name : Ensure Elastic repository key is available (RedHat)
31
3
ansible.builtin.rpm_key :
32
4
key : " {{ elasticstack_repo_key }}"
You can’t perform that action at this time.
0 commit comments