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