From 5c160d6bbe5c796805ae58f575b565ca15115881 Mon Sep 17 00:00:00 2001 From: Dan Clough Date: Mon, 23 Oct 2023 01:26:21 -0500 Subject: [PATCH] Change Debian repo location (#179) Changing the Debian repo to use "stable/main" instead of release-specific repos, per InfluxDB team suggestion --- tasks/Debian.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index 57ebfa4..e323f64 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -80,21 +80,11 @@ set_fact: telegraf_repository_params: "[signed-by=/usr/share/keyrings/influxdata-archive.asc]" - - name: "Debian | Add Telegraf repository (using LSB)" - copy: - content: "deb {{ telegraf_repository_params | default('') }} https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_lsb.codename }} stable" - dest: /etc/apt/sources.list.d/telegraf.list - when: - - ansible_lsb is defined - - ansible_lsb.codename is defined - - name: "Debian | Add Telegraf repository" copy: - content: "deb {{ telegraf_repository_params | default('') }} https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable" + content: "deb {{ telegraf_repository_params | default('') }} https://repos.influxdata.com/{{ ansible_distribution|lower }} stable main" dest: /etc/apt/sources.list.d/telegraf.list - become: true - when: - - ansible_lsb is not defined or ansible_lsb.codename is not defined + become: yes - name: "Debian | Install Telegraf package (repo)" apt: