Commit | Line | Data |
---|---|---|
e04644f3 RR |
1 | --- |
2 | ||
895a4f53 RR |
3 | # Copyright (C) 2020 Free Software Foundation |
4 | # | |
5 | # This program is free software; you can redistribute it and/or modify | |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 3 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU General Public License | |
16 | # along with this program; if not, write to the Free Software | |
17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | ||
e04644f3 RR |
19 | - name: add jitsi apt key |
20 | apt_key: | |
21 | data: "{{ lookup('file', 'files/download.jitsi.org.asc') }}" | |
22 | state: present | |
23 | ||
24 | - name: add jitsi apt repo | |
25 | apt_repository: | |
26 | repo: deb https://download.jitsi.org stable/ | |
27 | state: present | |
28 | update_cache: yes | |
29 | filename: 'jitsi' | |
30 | ||
e04644f3 RR |
31 | |
32 | - name: http ports | |
33 | ufw: | |
34 | comment: http ports | |
35 | rule: allow | |
36 | port: "{{ item }}" | |
37 | direction: in | |
38 | with_items: | |
39 | - 80 | |
40 | - 443 | |
e32db2bf RR |
41 | - 4446 |
42 | ||
43 | - name: allow connecting from 443 for p2p | |
44 | ufw: | |
45 | comment: allow connecting from 443 for p2p | |
46 | rule: allow | |
47 | from_port: 443 | |
48 | direction: out | |
49 | ||
50 | - name: turn ports | |
51 | ufw: | |
52 | comment: turn ports | |
53 | rule: allow | |
54 | from_port: 10000:20000 | |
55 | proto: udp | |
56 | direction: out | |
57 | ||
58 | - name: turn ports in | |
59 | ufw: | |
60 | comment: turn ports in | |
61 | rule: allow | |
62 | to_port: 10000:20000 | |
63 | proto: udp | |
64 | direction: in | |
65 | ||
66 | - name: allow connections to mysql server for auth | |
67 | ufw: | |
68 | comment: allow connections to mysql server for auth | |
69 | rule: allow | |
70 | to_port: 3306 | |
71 | direction: out | |
72 | to_ip: 209.51.188.223 | |
e04644f3 RR |
73 | |
74 | - name: check if jitsi is installed | |
75 | stat: path=/usr/share/jitsi-meet | |
76 | register: j | |
77 | ||
e32db2bf | 78 | |
e04644f3 RR |
79 | - name: copy watermark logo |
80 | copy: | |
81 | src: files/LPlogo.png | |
82 | dest: /usr/share/jitsi-meet/images/watermark.png | |
83 | owner: root | |
84 | group: root | |
85 | mode: 0444 | |
86 | when: j.stat.exists | |
87 | ||
88 | - name: copy index.html (librejs) | |
e32db2bf | 89 | template: |
e04644f3 RR |
90 | src: files/index.html |
91 | dest: /usr/share/jitsi-meet/index.html | |
92 | owner: root | |
93 | group: root | |
94 | mode: 0444 | |
95 | when: j.stat.exists | |
96 | ||
97 | - name: custom css | |
98 | lineinfile: | |
99 | path: /usr/share/jitsi-meet/css/all.css | |
100 | line: ".header-text-description, .unsupported-desktop-browser__description {display:none!important}" | |
e04644f3 RR |
101 | |
102 | - name: fellow hacker | |
103 | replace: | |
104 | path: /usr/share/jitsi-meet/interface_config.js | |
e32db2bf | 105 | regexp: "Fellow Jitster" |
e04644f3 | 106 | replace: "Fellow Hacker" |
e32db2bf | 107 | |
e04644f3 RR |
108 | |
109 | - name: disable youtube button | |
110 | replace: | |
111 | path: /usr/share/jitsi-meet/interface_config.js | |
112 | regexp: "'sharedvideo'," | |
113 | replace: "" | |
e04644f3 RR |
114 | |
115 | - name: disable background blur button | |
116 | replace: | |
117 | path: /usr/share/jitsi-meet/interface_config.js | |
118 | regexp: "'videobackgroundblur'," | |
119 | replace: "" | |
e04644f3 RR |
120 | |
121 | - name: link | |
122 | replace: | |
123 | path: /usr/share/jitsi-meet/interface_config.js | |
124 | regexp: "https://jitsi.org" | |
e32db2bf | 125 | replace: "https://{{ inventory_hostname }}/" |
e04644f3 RR |
126 | |
127 | - name: quality icon | |
128 | replace: | |
129 | path: /usr/share/jitsi-meet/interface_config.js | |
130 | regexp: "VIDEO_QUALITY_LABEL_DISABLED: false" | |
131 | replace: "VIDEO_QUALITY_LABEL_DISABLED: true" | |
e04644f3 RR |
132 | |
133 | - name: hide toolbar quick | |
134 | replace: | |
135 | path: /usr/share/jitsi-meet/interface_config.js | |
136 | regexp: "TOOLBAR_TIMEOUT: 4000," | |
137 | replace: "TOOLBAR_TIMEOUT: 1000," | |
e04644f3 RR |
138 | |
139 | - name: hide logo | |
140 | replace: | |
141 | path: /usr/share/jitsi-meet/interface_config.js | |
142 | regexp: "SHOW_WATERMARK_FOR_GUESTS: true," | |
143 | replace: "SHOW_WATERMARK_FOR_GUESTS: false," | |
e04644f3 RR |
144 | |
145 | - name: hide logo | |
146 | replace: | |
147 | path: /usr/share/jitsi-meet/interface_config.js | |
148 | regexp: "SHOW_JITSI_WATERMARK: true," | |
149 | replace: "SHOW_JITSI_WATERMARK: false," | |
e32db2bf RR |
150 | |
151 | - name: disable background blur | |
152 | replace: | |
153 | path: /usr/share/jitsi-meet/interface_config.js | |
154 | regexp: "DISABLE_VIDEO_BACKGROUND: false," | |
155 | replace: "DISABLE_VIDEO_BACKGROUND: true," | |
156 | ||
157 | - name: DISABLE_JOIN_LEAVE_NOTIFICATIONS | |
158 | replace: | |
159 | path: /usr/share/jitsi-meet/interface_config.js | |
160 | regexp: "DISABLE_JOIN_LEAVE_NOTIFICATIONS: false," | |
161 | replace: "DISABLE_JOIN_LEAVE_NOTIFICATIONS: true," | |
162 | ||
163 | - name: DISABLE_FOCUS_INDICATOR | |
164 | replace: | |
165 | path: /usr/share/jitsi-meet/interface_config.js | |
166 | regexp: "DISABLE_FOCUS_INDICATOR: false," | |
167 | replace: "DISABLE_FOCUS_INDICATOR: true," | |
168 | ||
169 | - name: DISABLE_DOMINANT_SPEAKER_INDICATOR | |
170 | replace: | |
171 | path: /usr/share/jitsi-meet/interface_config.js | |
172 | regexp: "DISABLE_DOMINANT_SPEAKER_INDICATOR: false," | |
173 | replace: "DISABLE_DOMINANT_SPEAKER_INDICATOR: true," | |
174 | ||
e04644f3 | 175 |