Update to 2021-04-29 09:00

master
Daniel Berteaud 4 years ago
parent fd21fd008d
commit 57e2542b28
  1. 2
      roles/jitsi_jibri/defaults/main.yml
  2. 31
      roles/jitsi_jibri/tasks/conf.yml
  3. 4
      roles/jitsi_jibri/tasks/install.yml
  4. 1
      roles/jitsi_jibri/tasks/user.yml
  5. 46
      roles/jitsi_jibri/templates/asound.conf.j2

@ -15,7 +15,7 @@ jitsi_jibri_internal_auth_domain: internal.{{ jitsi_jibri_auth_domain }}
# XMPP password to connect to # XMPP password to connect to
jitsi_jibri_xmpp_server: "{{ jitsi_xmpp_server | default(inventory_hostname) }}" jitsi_jibri_xmpp_server: "{{ jitsi_xmpp_server | default(inventory_hostname) }}"
jitsi_jibri_xmpp_user: jibri jitsi_jibri_xmpp_user: jibri
jitsi_jibri_xmpp_domain: recorder.{{ jitsi_jibri_auth_domain }} jitsi_jibri_xmpp_domain: recorder.{{ jitsi_jibri_domain }}
# A random pass will be created if not defined # A random pass will be created if not defined
# jitsi_jibri_xmpp_pass: s3cr3t. # jitsi_jibri_xmpp_pass: s3cr3t.
jitsi_jibri_recorder_xmpp_user: recorder jitsi_jibri_recorder_xmpp_user: recorder

@ -16,3 +16,34 @@
account required pam_permit.so account required pam_permit.so
dest: /etc/pam.d/xserver dest: /etc/pam.d/xserver
tags: jitsi tags: jitsi
- name: Allow any user to run Xorg
copy:
content: allowed_users = anybody
dest: /etc/X11/Xwrapper.config
tags: jitsi
- name: Create Chrome policy dir
file: path=/etc/opt/chrome/policies/managed/ state=directory
tags: jitsi
- name: Configure Chrome policy
copy:
content: |
{ "CommandLineFlagSecurityWarningsEnabled": false }
dest: /etc/opt/chrome/policies/managed/managed_policies.json
tags: jitsi
- name: Ensure snd-aloop is loaded
modprobe: name=snd-aloop state=present
tags: jitsi
- name: Configure snd-aloop to be loaded on boot
copy:
content: snd-aloop
dest: /etc/modules-load/jibri.conf
tags: jitsi
- name: Configure asound
template: asound.conf.j2 dest={{ jitsi_root_dir }}/jibri/.asoundrc owner={{ jitsi_jibri_user }}
tags: jitsi

@ -11,7 +11,7 @@
- alsa-utils - alsa-utils
- icewm - icewm
- xdotool - xdotool
- xorg-x11-drv-void #- xorg-x11-drv-void
- xorg-x11-drv-dummy - xorg-x11-drv-dummy
tags: jitsi tags: jitsi
@ -40,7 +40,7 @@
- name: Move ChromeDriver bin - name: Move ChromeDriver bin
copy: copy:
src: "{{ jitsi_root_dir }}/tmp/chromedirver" src: "{{ jitsi_root_dir }}/tmp/chromedriver"
dest: /usr/local/bin/chromedriver dest: /usr/local/bin/chromedriver
mode: 755 mode: 755
remote_src: True remote_src: True

@ -7,4 +7,5 @@
groups: groups:
- tty - tty
- video - video
- audio
tags: jitsi tags: jitsi

@ -0,0 +1,46 @@
pcm.amix {
type dmix
ipc_key 219345
slave.pcm "hw:Loopback,0,0"
}
pcm.asnoop {
type dsnoop
ipc_key 219346
slave.pcm "hw:Loopback_1,1,0"
}
pcm.aduplex {
type asym
playback.pcm "amix"
capture.pcm "asnoop"
}
pcm.bmix {
type dmix
ipc_key 219347
slave.pcm "hw:Loopback_1,0,0"
}
pcm.bsnoop {
type dsnoop
ipc_key 219348
slave.pcm "hw:Loopback,1,0"
}
pcm.bduplex {
type asym
playback.pcm "bmix"
capture.pcm "bsnoop"
}
pcm.pjsua {
type plug
slave.pcm "bduplex"
}
pcm.!default {
type plug
slave.pcm "aduplex"
}
Loading…
Cancel
Save