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
5 changes: 5 additions & 0 deletions roles/repos/tasks/debian.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Ensure gpg exists, for signing keys
ansible.builtin.apt:
name: gpg
state: present

- name: Ensure Elastic Stack key is available (Debian)
ansible.builtin.apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
Expand Down
5 changes: 5 additions & 0 deletions roles/repos/tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# See https://github.com/elastic/elasticsearch/issues/85876
# for more information why this is needed

- name: Ensure gpg exists, for signing keys
ansible.builtin.yum:
name: gnupg
state: present

- name: Workaround for EL > 8
when:
- ansible_distribution_major_version >= "9"
Expand Down
5 changes: 5 additions & 0 deletions roles/repos/tasks/suse.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: Ensure gpg exists, for signing keys
community.general.zypper:
name: gpg2
state: present

- name: Ensure Elastic Stack yum repository is configured (SuSE)
community.general.zypper_repository:
name: elastic-{{ elasticstack_release }}.x
Expand Down