Update 'roles/telegraf/tasks/debian.yml'

This commit is contained in:
panda 2022-11-04 00:28:14 +01:00
parent 27296f8af0
commit b9a3cd1c2c

View file

@ -35,6 +35,15 @@
when: "{{ debian_version }} == 9"
shell: echo "deb https://repos.influxdata.com/debian stretch stable" | tee /etc/apt/sources.list.d/influxdb.list
- name: add repo for debian 10
when: "{{ debian_version }} == 10"
shell: echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable"|sudo tee /etc/apt/sources.list.d/influxdb.list
- name: add repo for debian 11
when: "{{ debian_version }} == 11"
shell: echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable"|sudo tee /etc/apt/sources.list.d/influxdb.list
- name: Update repositories cache
apt:
update_cache: yes