summaryrefslogtreecommitdiff
path: root/roles/jitsi-enable-stats/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jitsi-enable-stats/tasks')
-rw-r--r--roles/jitsi-enable-stats/tasks/main.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/roles/jitsi-enable-stats/tasks/main.yml b/roles/jitsi-enable-stats/tasks/main.yml
index ccb75df..5fc1018 100644
--- a/roles/jitsi-enable-stats/tasks/main.yml
+++ b/roles/jitsi-enable-stats/tasks/main.yml
@@ -1,5 +1,5 @@
---
-## activation des stats
+## activation des stats dans jitsi
- name: configuration du videobridge pour activer les stats
lineinfile:
@@ -24,3 +24,24 @@
path: "/etc/jitsi/videobridge/config"
regexp: "^JVB_OPTS="
line: 'JVB_OPTS=" --apis=rest "'
+
+## Instalation de Telegraf
+- name: Ajout de la clé du depot Telegraf
+ apt_key:
+ url: https://repos.influxdata.com/influxdb.key
+
+- name: Ajout du depot jitsi
+ apt_repository:
+ repo: deb https://repos.influxdata.com/debian buster stable
+
+- name: Installation de Telegraf
+ apt:
+ name: telegraf
+ update_cache: true
+
+- name: Application de la conf Jitsi pour Telegraf
+ template:
+ src: ../files/jitsi.conf
+ dest: /etc/telegraf/telegraf.d/
+ notify:
+ - restart telegraf