diff --git a/playbook.yml b/playbook.yml index 6bfa42b..a2c09f9 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,3 +1,4 @@ +--- - hosts: pp.visio.nereide.fr roles: - role: common diff --git a/roles/auth/tasks/main.yml b/roles/auth/tasks/main.yml index 08f3e9b..cc09d6c 100644 --- a/roles/auth/tasks/main.yml +++ b/roles/auth/tasks/main.yml @@ -1,3 +1,4 @@ +--- - name: Conf Jitsi - Activation de l'authentification prosody 1/2 replace: path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua @@ -35,4 +36,4 @@ with_items: - prosody - jicofo - - jitsi-videobridge2 \ No newline at end of file + - jitsi-videobridge2 diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index f1df7ad..31a9306 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,39 +1,49 @@ +--- - name: Ajout de la clé GPG pour le depot jitsi apt_key: url: https://download.jitsi.org/jitsi-key.gpg.key + - name: Ajout du depot jitsi apt_repository: repo: deb https://download.jitsi.org stable/ + - name: apt update apt: update_cache: true + - name: Application du hostname avant installation debconf: name: jitsi-meet-web-config question: jitsi-videobridge/jvb-hostname value: '{{ inventory_hostname }}' vtype: string + - name: On veut un certificat autogénéré debconf: name: jitsi-meet-web-config question: jitsi-meet/cert-choice value: "Generate a new self-signed certificate (You will later get a chance to obtain a Let's encrypt certificate)" vtype: string + - name: installation de jitsi apt: name: jitsi-meet + - name: Configuration de let's encrypt script: files/jitsi-letsencrypt.sh > jitsi-letsencrypt.log + - name: Conf Jitsi - UI en fr lineinfile: path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js insertafter: "[^?]// defaultLanguage: 'en'" line: " defaultLanguage: 'fr'," + - name: Conf Jitsi - webcam en qualité medium par defaut 1/2 lineinfile: path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js insertafter: "[^?]// resolution: 720" line: " resolution: 360," + - name: Conf Jitsi - webcam en qualité medium par defaut 2/2 blockinfile: path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js @@ -50,11 +60,13 @@ } } }, + - name: Conf Jitsi - Désactive l'effet floutage d'arrière plan replace: path: /usr/share/jitsi-meet/interface_config.js regexp: "'videobackgroundblur'," replace: "" + - name: Conf Jitsi - Active une alerte pour les utilisateurs de Firefox replace: path: /usr/share/jitsi-meet/interface_config.js