update_cache: yes
filename: 'jitsi'
-# TODO:
-# Automate jitsi apt installation. By now, after running this playbook once you have to run 'apt install jitsi-meet'
- name: http ports
ufw:
with_items:
- 80
- 443
+ - 4446
+
+- name: allow connecting from 443 for p2p
+ ufw:
+ comment: allow connecting from 443 for p2p
+ rule: allow
+ from_port: 443
+ direction: out
+
+- name: turn ports
+ ufw:
+ comment: turn ports
+ rule: allow
+ from_port: 10000:20000
+ proto: udp
+ direction: out
+
+- name: turn ports in
+ ufw:
+ comment: turn ports in
+ rule: allow
+ to_port: 10000:20000
+ proto: udp
+ direction: in
+
+- name: allow connections to mysql server for auth
+ ufw:
+ comment: allow connections to mysql server for auth
+ rule: allow
+ to_port: 3306
+ direction: out
+ to_ip: 209.51.188.223
- name: check if jitsi is installed
stat: path=/usr/share/jitsi-meet
register: j
+
- name: copy watermark logo
copy:
src: files/LPlogo.png
when: j.stat.exists
- name: copy index.html (librejs)
- copy:
+ template:
src: files/index.html
dest: /usr/share/jitsi-meet/index.html
owner: root
lineinfile:
path: /usr/share/jitsi-meet/css/all.css
line: ".header-text-description, .unsupported-desktop-browser__description {display:none!important}"
- when: j.stat.exists
- name: fellow hacker
replace:
path: /usr/share/jitsi-meet/interface_config.js
- regexp: "Fellow Jitser"
+ regexp: "Fellow Jitster"
replace: "Fellow Hacker"
- when: j.stat.exists
+
- name: disable youtube button
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "'sharedvideo',"
replace: ""
- when: j.stat.exists
- name: disable background blur button
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "'videobackgroundblur',"
replace: ""
- when: j.stat.exists
-
-- name: disable background blur
- replace:
- path: /usr/share/jitsi-meet/interface_config.js
- regexp: "DISABLE_VIDEO_BACKGROUND: false,"
- replace: "DISABLE_VIDEO_BACKGROUND: true,"
- when: j.stat.exists
- name: link
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "https://jitsi.org"
- replace: "https://libreplanet.org"
- when: j.stat.exists
+ replace: "https://{{ inventory_hostname }}/"
- name: quality icon
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "VIDEO_QUALITY_LABEL_DISABLED: false"
replace: "VIDEO_QUALITY_LABEL_DISABLED: true"
- when: j.stat.exists
- name: hide toolbar quick
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "TOOLBAR_TIMEOUT: 4000,"
replace: "TOOLBAR_TIMEOUT: 1000,"
- when: j.stat.exists
- name: hide logo
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "SHOW_WATERMARK_FOR_GUESTS: true,"
replace: "SHOW_WATERMARK_FOR_GUESTS: false,"
- when: j.stat.exists
- name: hide logo
replace:
path: /usr/share/jitsi-meet/interface_config.js
regexp: "SHOW_JITSI_WATERMARK: true,"
replace: "SHOW_JITSI_WATERMARK: false,"
- when: j.stat.exists
+
+- name: disable background blur
+ replace:
+ path: /usr/share/jitsi-meet/interface_config.js
+ regexp: "DISABLE_VIDEO_BACKGROUND: false,"
+ replace: "DISABLE_VIDEO_BACKGROUND: true,"
+
+- name: DISABLE_JOIN_LEAVE_NOTIFICATIONS
+ replace:
+ path: /usr/share/jitsi-meet/interface_config.js
+ regexp: "DISABLE_JOIN_LEAVE_NOTIFICATIONS: false,"
+ replace: "DISABLE_JOIN_LEAVE_NOTIFICATIONS: true,"
+
+- name: DISABLE_FOCUS_INDICATOR
+ replace:
+ path: /usr/share/jitsi-meet/interface_config.js
+ regexp: "DISABLE_FOCUS_INDICATOR: false,"
+ replace: "DISABLE_FOCUS_INDICATOR: true,"
+
+- name: DISABLE_DOMINANT_SPEAKER_INDICATOR
+ replace:
+ path: /usr/share/jitsi-meet/interface_config.js
+ regexp: "DISABLE_DOMINANT_SPEAKER_INDICATOR: false,"
+ replace: "DISABLE_DOMINANT_SPEAKER_INDICATOR: true,"
+