From 81f81beb106a49651d2765cf37c623e48b22e688 Mon Sep 17 00:00:00 2001 From: Samuel Trégouët Date: Wed, 28 Apr 2021 15:43:34 +0000 Subject: Jibri installation et configuration --- roles/jibri-install/tasks/install-jibri.yml | 61 +++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 roles/jibri-install/tasks/install-jibri.yml (limited to 'roles/jibri-install/tasks/install-jibri.yml') diff --git a/roles/jibri-install/tasks/install-jibri.yml b/roles/jibri-install/tasks/install-jibri.yml new file mode 100644 index 0000000..c4e4925 --- /dev/null +++ b/roles/jibri-install/tasks/install-jibri.yml @@ -0,0 +1,61 @@ +--- +- name: vérification des variables obligatoire + fail: + msg: | + il faut définir les variables `jibri_user` et + `jibri_password`, `jitsi_server_host` pour utiliser ce role + when: (jibri_user is not defined) or + (jibri_password is not defined) or + (jitsi_server_host is not defined) + +# source: https://github.com/jitsi/jibri#jitsi-debian-repository +- name: Import de la clé GPG + apt_key: + id: FFD65A0DA2BEBDEB73D44C8BB4D2D216F1FD7806 + url: https://download.jitsi.org/jitsi-key.gpg.key + keyring: /etc/apt/trusted.gpg.d/jitsi.gpg + +- name: Ajout du depot jitsi + apt_repository: + repo: deb [signed-by=/etc/apt/trusted.gpg.d/jitsi.gpg] https://download.jitsi.org stable/ + update_cache: true + +- name: install jibri + apt: + pkg: + - jibri + notify: restart jibri + +- name: configure jibri + template: + src: ../templates/jibri.conf + dest: /etc/jitsi/jibri/jibri.conf + notify: restart jibri + +- name: configure xorg + lineinfile: + path: /etc/jitsi/jibri/xorg-video-dummy.conf + regexp: "[^?]Virtual " + line: " Virtual 1280 720" + notify: + - restart jibri + - restart jibri-xorg + +- name: configure les cookies (fichier) + copy: + src: ../files/chrome-extension-cookie + dest: /opt/ + mode: '644' + directory_mode: '755' + when: + - jitsi_cookie_enabled is defined + - jitsi_cookie_enabled + +- name: configure les cookies (template) + template: + src: ../templates/chrome-extension-background.js.j2 + dest: /opt/chrome-extension-cookie/background.js + mode: '644' + when: + - jitsi_cookie_enabled is defined + - jitsi_cookie_enabled -- cgit v1.2.3