69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
---
|
|
## activation des stats dans jitsi
|
|
|
|
- name: configuration du videobridge pour activer les stats
|
|
lineinfile:
|
|
path: "/etc/jitsi/videobridge/sip-communicator.properties"
|
|
regexp: "^org.jitsi.videobridge.ENABLE_STATISTICS"
|
|
line: "org.jitsi.videobridge.ENABLE_STATISTICS=true"
|
|
|
|
- name: configuration du videobridge pour transporter les stats via colibri REST api
|
|
lineinfile:
|
|
path: "/etc/jitsi/videobridge/sip-communicator.properties"
|
|
regexp: "^org.jitsi.videobridge.STATISTICS_TRANSPORT"
|
|
line: "org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri"
|
|
|
|
- name: bloque l'accès à l'api colibri depuis l'extérieur
|
|
lineinfile:
|
|
path: "/etc/jitsi/videobridge/sip-communicator.properties"
|
|
regexp: "^org.jitsi.videobridge.rest.private.jetty.host"
|
|
line: "org.jitsi.videobridge.rest.private.jetty.host=localhost"
|
|
|
|
- name: ajoute l'api REST à la config de démarrage du videobridge
|
|
lineinfile:
|
|
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: ../templates/telegraf-input-jitsi.conf
|
|
dest: /etc/telegraf/telegraf.d/jitsi.conf
|
|
notify:
|
|
- restart telegraf
|
|
|
|
- name: Question
|
|
pause:
|
|
prompt: "Vers quel influxdb/grafana souhaitez vous envoyer les metrics?\n1- Néréide\n2- Champs-Libres\n"
|
|
register: prompt_input
|
|
|
|
- name: Application de la conf Telegraf Néréide
|
|
template:
|
|
src: ../templates/telegraf-general-nrd.conf.j2
|
|
dest: /etc/telegraf/telegraf.conf
|
|
notify:
|
|
- restart telegraf
|
|
when: ( prompt_input.user_input == "1" )
|
|
|
|
- name: Application de la conf Telegraf Champs-Libre
|
|
template:
|
|
src: ../templates/telegraf-general-cl.conf.j2
|
|
dest: /etc/telegraf/telegraf.conf
|
|
notify:
|
|
- restart telegraf
|
|
when: ( prompt_input.user_input == "2" )
|