1
0
forked from infra/ansible
infra/roles/jitsi/tasks/main.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

---
2020-05-23 21:52:02 +02:00
- name: Add Jitsi repo key
apt_key:
id: EF8B479E2DC1389C
url: https://download.jitsi.org/jitsi-key.gpg.key
2020-05-23 21:52:02 +02:00
- name: Add Jitsi apt repo
apt_repository:
repo: deb https://download.jitsi.org stable/
filename: jitsi
2020-05-23 21:52:02 +02:00
- 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