blob: 5ba91fc9f7fab3e4f96d27151e5fd4d59ff52f30 (
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
|
---
- name: Conf Jitsi - Activation de l'authentification prosody 1/2
replace:
path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua
regexp: 'authentication = "anonymous"'
replace: 'authentication = "internal_plain"'
notify:
- restart prosody
- name: Conf Jitsi - Activation de l'authentification prosody 2/2
blockinfile:
path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua
marker: "-- {mark} ANSIBLE MANAGED BLOCK"
block: |
VirtualHost "guest.{{ inventory_hostname }}"
authentication = "anonymous"
c2s_require_encryption = false
notify:
- restart prosody
- name: Conf Jitsi - Activation de l'authentification jitsi
lineinfile:
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
insertafter: "[^?]// anonymousdomain: 'guest.example.com'"
line: " anonymousdomain: 'guest.{{ inventory_hostname }}',"
notify:
- restart jitsi-videobridge2
- name: Conf Jitsi - Activation de l'authentification jicofo
lineinfile:
path: /etc/jitsi/jicofo/sip-communicator.properties
insertafter: "^org.jitsi.jicofo.BRIDGE_MUC=*"
line: "org.jitsi.jicofo.auth.URL=XMPP:{{ inventory_hostname }}"
notify:
- restart jicofo
- name: Conf Jitsi - Création de l'utilisateur prosody
command: prosodyctl register {{ jitsi_user }} {{ inventory_hostname }} {{ jitsi_pass }}
notify:
- restart prosody
|