summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-04-03 18:53:08 +0200
committerAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-04-03 18:53:08 +0200
commit351fde7bb685699bccb0fa5a160f3b6efa931ebe (patch)
tree2905a119782aa503525928906ece797f7b2b3a2f /roles
parentee820587b48ae9c5a48200649cc69aa4a32806e4 (diff)
ajout de la configuration de l'authentification jitsi
Diffstat (limited to 'roles')
-rw-r--r--roles/auth/tasks/main.yml35
-rw-r--r--roles/common/tasks/main.yml6
2 files changed, 34 insertions, 7 deletions
diff --git a/roles/auth/tasks/main.yml b/roles/auth/tasks/main.yml
index 39adbb5..08f3e9b 100644
--- a/roles/auth/tasks/main.yml
+++ b/roles/auth/tasks/main.yml
@@ -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 \ No newline at end of file
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index d506fa8..f1df7ad 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -27,14 +27,12 @@
- name: Conf Jitsi - UI en fr
lineinfile:
path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js
- regexp: '^defaultLanguage:'
- insertafter: "// defaultLanguage: 'en'"
+ 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
- regexp: '^resolution:'
- insertafter: "// resolution: 720"
+ insertafter: "[^?]// resolution: 720"
line: " resolution: 360,"
- name: Conf Jitsi - webcam en qualité medium par defaut 2/2
blockinfile: