ajout de la configuration de l'authentification jitsi

This commit is contained in:
Antoine Ouvrard
2020-04-03 18:53:08 +02:00
parent ee820587b4
commit 351fde7bb6
4 changed files with 35 additions and 14 deletions
+32 -3
View File
@@ -1,9 +1,38 @@
- name: Conf Jitsi - Activation de l'authentification prosody
- 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"'
- 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
- 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 }}',"
- 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 }}"
- name: Conf Jitsi - Création de l'utilisateur prosody
shell: prosodyctl register {{ username }} {{ inventory_hostname }} {{ password }}
shell: prosodyctl register {{ jitsi_user }} {{ inventory_hostname }} {{ jitsi_pass }}
- name: Redémarrage des services
systemd:
name: '{{ item }}.service'
state: restarted
with_items:
- prosody
- jicofo
- jitsi-videobridge2