summaryrefslogtreecommitdiff
path: root/roles/jitsi-enable-stats/tasks/main.yml
diff options
context:
space:
mode:
authorAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-04-16 17:59:04 +0200
committerSamuel Trégouët <samuel.tregouet@nereide.fr>2020-05-26 11:20:42 +0200
commit031728dd0aff6f21a786f47379e171bbe2e76eca (patch)
treed7cb136733596596d6c3ca20e753c9996a525c9c /roles/jitsi-enable-stats/tasks/main.yml
parentf8e710aedfc39fc43c105a141e08dffdf0ee1526 (diff)
ajout install de telegraph
Diffstat (limited to 'roles/jitsi-enable-stats/tasks/main.yml')
-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