Skip to content

Commit bc875ec

Browse files
authored
Merge pull request #439 from vjrj/images-gpg-key
Fix missing gpg and deprecated apt-key for elasticsearch. #438
2 parents f1316ef + cbd6655 commit bc875ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ansible/roles/ansible-elasticsearch/tasks/elasticsearch-Debian.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@
4747
state: present
4848

4949
- name: Debian - Add Elasticsearch repository key
50-
apt_key:
50+
get_url:
5151
url: '{{ es_apt_key }}'
52-
state: present
52+
dest: /etc/apt/trusted.gpg.d/elasticsearch.asc
53+
mode: 0644
5354
when: es_add_repository and es_apt_key | string
5455

5556
- name: Debian - Add elasticsearch repository

0 commit comments

Comments
 (0)