77 lines
2.5 KiB
YAML
77 lines
2.5 KiB
YAML
# $ cat << EOF | sudo debconf-set-selections
|
|
# jitsi-videobridge jitsi-videobridge/jvb-hostname string meet.example.com
|
|
# jitsi-meet jitsi-meet/jvb-serve boolean false
|
|
# jitsi-meet-prosody jitsi-videobridge/jvb-hostname string meet.example.com
|
|
# jitsi-meet-web-config jitsi-meet/cert-choice select I want to use my own certificate
|
|
# jitsi-meet-web-config jitsi-meet/cert-path-crt string /etc/ssl/meet.example.com.crt
|
|
# jitsi-meet-web-config jitsi-meet/cert-path-key string /etc/ssl/meet.example.com.key
|
|
# EOF
|
|
|
|
|
|
# - nginx
|
|
# - prosody
|
|
# - jicofo
|
|
# - jitsi-meet-web
|
|
# - jitsi-meet-prosody
|
|
# - jitsi-meet-web-config
|
|
# - jitsi-videobridge2
|
|
|
|
- name: jitsimeet | set debconf vars
|
|
shell:
|
|
cmd: "{{ playbook_dir }}/roles/jitsimeet/files/set_debconf.sh {{ jitsi_fqdn }}"
|
|
|
|
- name: jitsimeet | install packages
|
|
package:
|
|
name:
|
|
- prosody
|
|
- jicofo
|
|
- jitsi-meet-web
|
|
- jitsi-meet-prosody
|
|
- jitsi-meet-web-config
|
|
- jitsi-videobridge2
|
|
notify: restart_nginx
|
|
|
|
- name: jitsimeet | copy custom settings
|
|
copy:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
with_items:
|
|
- { src: "top-view-photo-of-people-near-wooden-table-3183150_small.jpg", dest: "/usr/share/jitsi-meet/images/welcome-background-cust.png" }
|
|
- { src: "welcomePageAdditionalContent.html", dest: "/usr/share/jitsi-meet/static/" }
|
|
- { src: "plugin.head.html", dest: "/usr/share/jitsi-meet/" }
|
|
- { src: "jitsi-statistics.sh", dest: "/root/" }
|
|
notify: restart_jitsi
|
|
|
|
- name: jitsimeet | copy /etc/jitsi
|
|
copy:
|
|
src: "{{ item.src }}"
|
|
dest: "/etc/jitsi/"
|
|
owner: "{{ item.owner }}"
|
|
group: "{{ item.group }}"
|
|
loop:
|
|
- { src: "jitsi_etc/jicofo", owner: "jicofo", group: "jitsi" }
|
|
- { src: "jitsi_etc/meet", owner: "root", group: "root" }
|
|
- { src: "jitsi_etc/videobridge", owner: "jvb", group: "jitsi" }
|
|
notify: restart_jitsi
|
|
|
|
- name: jitsimeet | Modify interface_config.js
|
|
replace:
|
|
path: "/usr/share/jitsi-meet/interface_config.js"
|
|
regexp: "{{ item.regexp }}"
|
|
replace: "{{ item.repl }}"
|
|
backup: True
|
|
loop:
|
|
- { regexp: "APP_NAME.*$", repl: "APP_NAME: 'Mewimeet'," }
|
|
- { regexp: "jitsi.org", repl: "mewimeet.de" }
|
|
- { regexp: "_CONTENT: false", repl: "_CONTENT: true"}
|
|
notify: restart_jitsi
|
|
|
|
- name: jitsimeet | cron | schedule refresh of statistics
|
|
cron:
|
|
name: Get statistics for jitsi-meet
|
|
user: root
|
|
job: "{{ item }}"
|
|
loop:
|
|
- "/root/jitsi-statistics.sh"
|
|
- "sleep 20; /root/jitsi-statistics.sh"
|
|
- "sleep 40; /root/jitsi-statistics.sh" |