Skip to content

Commit

Permalink
fix: auto remove legacy filebeat repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils committed Jan 1, 2025
1 parent 19439df commit 56a50fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
curl -sSL {{ filebeat_elastic_apt_gpg_key }} | apt-key add -
when: add_repository_key is failed and filebeat_add_repo | bool

- name: Remove legacy Filebeat repository.
apt_repository:
repo: 'deb https://artifacts.elastic.co/packages/{{ filebeat_version }}/apt stable main'
state: absent
update_cache: true

- name: Add Filebeat repository.
apt_repository:
Expand Down

0 comments on commit 56a50fc

Please sign in to comment.