ajout de la configuration de l'authentification jitsi
This commit is contained in:
@@ -3,4 +3,4 @@ visio.nereide.fr
|
|||||||
visio2.nereide.fr
|
visio2.nereide.fr
|
||||||
visio.entrouvert.com
|
visio.entrouvert.com
|
||||||
visio443.champs-libres.be
|
visio443.champs-libres.be
|
||||||
pp.visio.nereide.fr ansible_ssh_user=root
|
pp.visio.nereide.fr ansible_ssh_user=root jitsi_user=toto jitsi_pass=titi
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
- hosts: pp.visio.nereide.fr
|
- hosts: pp.visio.nereide.fr
|
||||||
vars_prompt:
|
|
||||||
- name: username
|
|
||||||
prompt: "Saisir le nom d'utilisateur"
|
|
||||||
private: no
|
|
||||||
- name: password
|
|
||||||
prompt: "Saisir le mot de passe"
|
|
||||||
roles:
|
roles:
|
||||||
- role: common
|
- role: common
|
||||||
- role: auth
|
- role: auth
|
||||||
|
|||||||
@@ -1,9 +1,38 @@
|
|||||||
|
- name: Conf Jitsi - Activation de l'authentification prosody 1/2
|
||||||
- name: Conf Jitsi - Activation de l'authentification prosody
|
|
||||||
replace:
|
replace:
|
||||||
path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua
|
path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua
|
||||||
regexp: 'authentication = "anonymous"'
|
regexp: 'authentication = "anonymous"'
|
||||||
replace: 'authentication = "internal_plain"'
|
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
|
- 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
|
||||||
@@ -27,14 +27,12 @@
|
|||||||
- name: Conf Jitsi - UI en fr
|
- name: Conf Jitsi - UI en fr
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
|
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
|
||||||
regexp: '^defaultLanguage:'
|
insertafter: "[^?]// defaultLanguage: 'en'"
|
||||||
insertafter: "// defaultLanguage: 'en'"
|
|
||||||
line: " defaultLanguage: 'fr',"
|
line: " defaultLanguage: 'fr',"
|
||||||
- name: Conf Jitsi - webcam en qualité medium par defaut 1/2
|
- name: Conf Jitsi - webcam en qualité medium par defaut 1/2
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
|
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
|
||||||
regexp: '^resolution:'
|
insertafter: "[^?]// resolution: 720"
|
||||||
insertafter: "// resolution: 720"
|
|
||||||
line: " resolution: 360,"
|
line: " resolution: 360,"
|
||||||
- name: Conf Jitsi - webcam en qualité medium par defaut 2/2
|
- name: Conf Jitsi - webcam en qualité medium par defaut 2/2
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user