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 | ||
31 | # TODO: | |
32 | # Automate jitsi apt installation. By now, after running this playbook once you have to run 'apt install jitsi-meet' | |
33 | ||
34 | - name: http ports | |
35 | ufw: | |
36 | comment: http ports | |
37 | rule: allow | |
38 | port: "{{ item }}" | |
39 | direction: in | |
40 | with_items: | |
41 | - 80 | |
42 | - 443 | |
43 | ||
44 | - name: check if jitsi is installed | |
45 | stat: path=/usr/share/jitsi-meet | |
46 | register: j | |
47 | ||
48 | - name: copy watermark logo | |
49 | copy: | |
50 | src: files/LPlogo.png | |
51 | dest: /usr/share/jitsi-meet/images/watermark.png | |
52 | owner: root | |
53 | group: root | |
54 | mode: 0444 | |
55 | when: j.stat.exists | |
56 | ||
57 | - name: copy index.html (librejs) | |
58 | copy: | |
59 | src: files/index.html | |
60 | dest: /usr/share/jitsi-meet/index.html | |
61 | owner: root | |
62 | group: root | |
63 | mode: 0444 | |
64 | when: j.stat.exists | |
65 | ||
66 | - name: custom css | |
67 | lineinfile: | |
68 | path: /usr/share/jitsi-meet/css/all.css | |
69 | line: ".header-text-description, .unsupported-desktop-browser__description {display:none!important}" | |
70 | when: j.stat.exists | |
71 | ||
72 | - name: fellow hacker | |
73 | replace: | |
74 | path: /usr/share/jitsi-meet/interface_config.js | |
75 | regexp: "Fellow Jitser" | |
76 | replace: "Fellow Hacker" | |
77 | when: j.stat.exists | |
78 | ||
79 | - name: disable youtube button | |
80 | replace: | |
81 | path: /usr/share/jitsi-meet/interface_config.js | |
82 | regexp: "'sharedvideo'," | |
83 | replace: "" | |
84 | when: j.stat.exists | |
85 | ||
86 | - name: disable background blur button | |
87 | replace: | |
88 | path: /usr/share/jitsi-meet/interface_config.js | |
89 | regexp: "'videobackgroundblur'," | |
90 | replace: "" | |
91 | when: j.stat.exists | |
92 | ||
93 | - name: disable background blur | |
94 | replace: | |
95 | path: /usr/share/jitsi-meet/interface_config.js | |
96 | regexp: "DISABLE_VIDEO_BACKGROUND: false," | |
97 | replace: "DISABLE_VIDEO_BACKGROUND: true," | |
98 | when: j.stat.exists | |
99 | ||
100 | - name: link | |
101 | replace: | |
102 | path: /usr/share/jitsi-meet/interface_config.js | |
103 | regexp: "https://jitsi.org" | |
104 | replace: "https://libreplanet.org" | |
105 | when: j.stat.exists | |
106 | ||
107 | - name: quality icon | |
108 | replace: | |
109 | path: /usr/share/jitsi-meet/interface_config.js | |
110 | regexp: "VIDEO_QUALITY_LABEL_DISABLED: false" | |
111 | replace: "VIDEO_QUALITY_LABEL_DISABLED: true" | |
112 | when: j.stat.exists | |
113 | ||
114 | - name: hide toolbar quick | |
115 | replace: | |
116 | path: /usr/share/jitsi-meet/interface_config.js | |
117 | regexp: "TOOLBAR_TIMEOUT: 4000," | |
118 | replace: "TOOLBAR_TIMEOUT: 1000," | |
119 | when: j.stat.exists | |
120 | ||
121 | - name: hide logo | |
122 | replace: | |
123 | path: /usr/share/jitsi-meet/interface_config.js | |
124 | regexp: "SHOW_WATERMARK_FOR_GUESTS: true," | |
125 | replace: "SHOW_WATERMARK_FOR_GUESTS: false," | |
126 | when: j.stat.exists | |
127 | ||
128 | - name: hide logo | |
129 | replace: | |
130 | path: /usr/share/jitsi-meet/interface_config.js | |
131 | regexp: "SHOW_JITSI_WATERMARK: true," | |
132 | replace: "SHOW_JITSI_WATERMARK: false," | |
133 | when: j.stat.exists | |
134 |