Skip to content

Commit

Permalink
fix apt-key deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
chadek authored Jan 6, 2025
1 parent 2cf90aa commit 5dc3a3f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
state: present

- name: Add Elasticsearch apt key.
apt_key:
ansible.builtin.get_url:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
state: present
dest: /usr/share/keyrings/elasticsearch-keyring.asc
mode: '0644'
force: true

- name: Add Elasticsearch repository.
apt_repository:
repo: 'deb https://artifacts.elastic.co/packages/{{ elasticsearch_version }}/apt stable main'
repo: 'deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.asc] https://artifacts.elastic.co/packages/{{ elasticsearch_version }}/apt stable main'
state: present
update_cache: true

0 comments on commit 5dc3a3f

Please sign in to comment.