diff options
| author | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2021-04-28 15:43:34 +0000 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2021-04-28 15:43:34 +0000 |
| commit | ef7e1a2729ba52bf4abef4cdee25d4ae929cd3d1 (patch) | |
| tree | c7b26e78b6962099696d0193df723b160f952b7d /roles/jitsi-enable-jibri/tasks/main.yml | |
| parent | e13e25b1dec2680e11fe0484e43e5d9807bd851a (diff) | |
| parent | 81f81beb106a49651d2765cf37c623e48b22e688 (diff) | |
Merge branch 'jibri2' into 'master'
Jibri installation et configuration
See merge request 10031/visio!19
Diffstat (limited to 'roles/jitsi-enable-jibri/tasks/main.yml')
| -rw-r--r-- | roles/jitsi-enable-jibri/tasks/main.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/roles/jitsi-enable-jibri/tasks/main.yml b/roles/jitsi-enable-jibri/tasks/main.yml new file mode 100644 index 0000000..529aaf2 --- /dev/null +++ b/roles/jitsi-enable-jibri/tasks/main.yml @@ -0,0 +1,52 @@ +--- +- name: vérification des variables obligatoire + fail: + msg: | + il faut définir la variable `jibri_users` + pour utiliser ce role + when: jibri_users is not defined + +- name: configure prosody + blockinfile: + path: /etc/prosody/conf.d/{{ inventory_hostname }}.cfg.lua + marker: "-- {mark} jibri ANSIBLE MANAGED BLOCK" + block: | + VirtualHost "recorder.{{ inventory_hostname }}" + modules_enabled = { + "ping"; + } + authentication = "internal_plain" + notify: + - restart prosody + +- name: utilisateur jibri pour prosody (auth) + command: prosodyctl register {{ item.user }} auth.{{ inventory_hostname }} {{ item.password }} + loop: "{{ jibri_users }}" + +- name: utilisateur jibri pour prosody (recorder) + command: prosodyctl register {{ item.user }}-record recorder.{{ inventory_hostname }} {{ item.password }} + loop: "{{ jibri_users }}" + +- name: authentification jicofo + blockinfile: + path: /etc/jitsi/jicofo/sip-communicator.properties + marker: "# {mark} jibri ANSIBLE MANAGED BLOCK" + block: | + org.jitsi.jicofo.jibri.BREWERY=JibriBrewery@internal.auth.{{ inventory_hostname }} + org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90 + notify: + - restart prosody + - restart jitsi-videobridge2 + - restart jicofo + +- name: livestreaming + lineinfile: + path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js + insertafter: "[^?]// liveStreamingEnabled:" + line: "liveStreamingEnabled: true," + +- name: hidden domain + lineinfile: + path: /etc/jitsi/meet/{{ inventory_hostname }}-config.js + insertbefore: "[^?]// List of undocumented" + line: "hiddenDomain: 'recorder.{{ inventory_hostname}}',"
\ No newline at end of file |
