Browse Source

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

panda 1 year ago
parent
commit
b9a3cd1c2c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      roles/telegraf/tasks/debian.yml

+ 9 - 0
roles/telegraf/tasks/debian.yml

@@ -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