From cbd6655b9451b43984e808cb3bdf3297c8e407d6 Mon Sep 17 00:00:00 2001 From: vjrj Date: Tue, 6 Oct 2020 17:21:53 +0200 Subject: [PATCH] Fix missing gpg and deprecated apt-key for elasticsearch. #438 --- .../ansible-elasticsearch/tasks/elasticsearch-Debian.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/roles/ansible-elasticsearch/tasks/elasticsearch-Debian.yml b/ansible/roles/ansible-elasticsearch/tasks/elasticsearch-Debian.yml index 5fc4a7a75..47ad0f60d 100755 --- a/ansible/roles/ansible-elasticsearch/tasks/elasticsearch-Debian.yml +++ b/ansible/roles/ansible-elasticsearch/tasks/elasticsearch-Debian.yml @@ -47,9 +47,10 @@ state: present - name: Debian - Add Elasticsearch repository key - apt_key: + get_url: url: '{{ es_apt_key }}' - state: present + dest: /etc/apt/trusted.gpg.d/elasticsearch.asc + mode: 0644 when: es_add_repository and es_apt_key | string - name: Debian - Add elasticsearch repository