From 56a50fc20b8cf752a9978ff88b1684014fda4886 Mon Sep 17 00:00:00 2001 From: Nils Date: Wed, 1 Jan 2025 13:23:21 +0100 Subject: [PATCH] fix: auto remove legacy filebeat repos --- tasks/setup-Debian.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 7051120..58bf448 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -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: