Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions roles/elasticsearch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
- name: Install openssl if security is activated
ansible.builtin.package:
name: openssl
register: _openssl_install
until: _openssl_install is success
retries: 3
delay: 10
when: elasticsearch_security | bool

# the following should be done by the rpm but failed with 7.4
Expand Down
4 changes: 4 additions & 0 deletions roles/elasticstack/tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
- python3-cryptography
- python3-packaging
- openssl
register: _security_packages_install
until: _security_packages_install is success
retries: 3
delay: 10
tags:
- certificates
- renew_ca
Expand Down
8 changes: 8 additions & 0 deletions roles/repos/tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@
- gpg
- gpg-agent
state: present
register: _gpg_install_deb
until: _gpg_install_deb is success
retries: 3
delay: 10

- name: Ensure Elastic Stack key is available (Debian)
ansible.builtin.get_url:
url: "{{ elasticstack_repo_key }}"
dest: /usr/share/keyrings/elasticsearch.asc
mode: "0644"
register: _elastic_key_download
until: _elastic_key_download is success
retries: 3
delay: 10

- name: Ensure Elastic Stack apt repo is absent (Debian legacy format)
ansible.builtin.file:
Expand Down
8 changes: 8 additions & 0 deletions roles/repos/tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
ansible.builtin.package:
name: gnupg
state: present
register: _gpg_install_rh
until: _gpg_install_rh is success
retries: 3
delay: 10

- name: Workaround for EL > 8
when:
Expand All @@ -27,6 +31,10 @@
- name: Install crypto-policies-scripts
ansible.builtin.package:
name: crypto-policies-scripts
register: _crypto_policies_install
until: _crypto_policies_install is success
retries: 3
delay: 10

# since we don't expect to have that workaround for long
# we can skip having idempotency checks fixed
Expand Down
Loading