36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
|
|
- name: Add Jitsi repo key
|
|
apt_key:
|
|
id: EF8B479E2DC1389C
|
|
url: https://download.jitsi.org/jitsi-key.gpg.key
|
|
|
|
- name: Add Jitsi apt repo
|
|
apt_repository:
|
|
repo: deb https://download.jitsi.org stable/
|
|
filename: jitsi
|
|
|
|
- name: Provide debconf defaults
|
|
debconf:
|
|
name: "{{ item.name }}"
|
|
question: "{{ item.question }}"
|
|
vtype: "{{ item.vtype }}"
|
|
value: "{{ item.value }}"
|
|
with_items:
|
|
- { name: 'jitsi-videobridge2', question: 'jitsi-videobridge/jvb-hostname', vtype: 'string', value: "{{ jitsi_domain }}" }
|
|
- { name: 'jitsi-meet-web-config', question: 'jitsi-meet/cert-choice:', vtype: 'select', value: "Generate a new self-signed certificate (You will later get a chance to obtain a Let's encrypt certificate)" }
|
|
|
|
- name: Install jitsi meet
|
|
apt: name=jitsi-meet
|
|
|
|
- name: Predefine an email address for Let's Encrypt
|
|
lineinfile:
|
|
path: /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
|
|
regexp: '^read EMAIL$'
|
|
line: 'EMAIL="{{ jitsi_admin_email }}"'
|
|
|
|
- name: Setup Let's Encrypt
|
|
command:
|
|
cmd: /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
|
|
creates: /etc/cron.weekly/letsencrypt-renew
|