summaryrefslogtreecommitdiff
path: root/roles/common/tasks/main.yml
blob: c20239c3255264a02351b5b851e3eb95e330e07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
- 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: '{{ 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: library/jitsi-letsencrypt.sh > jitsi-letsencrypt.log
- name: Conf Jitsi - UI en fr
  lineinfile:
    path: /etc/jitsi/meet/{{ hostname }}-config.js
    regexp: '^defaultLanguage:'
    insertafter: "// defaultLanguage: 'en'"
    line: "    defaultLanguage: 'fr',"
- name: Conf Jitsi - webcam en qualité medium par defaut 1/2
  lineinfile:
    path: /etc/jitsi/meet/{{ hostname }}-config.js
    regexp: '^resolution:'
    insertafter: "// resolution: 720"
    line: "    resolution: 360,"
- name:  Conf Jitsi - webcam en qualité medium par defaut 2/2
  blockinfile:
    path: /etc/jitsi/meet/{{ hostname }}-config.js
    marker: "// {mark} ANSIBLE MANAGED BLOCK"
    insertafter: "// ratio of 16:9 with an ideal resolution of 720."
    block: |
        constraints: {
          video: {
            aspectRatio: 16 / 9,
            height: {
              ideal: 360,
              max: 360,
              min: 240
            }
          }        
        },
- 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
    regexp: "'firefox',"
    replace: ""