diff options
Diffstat (limited to 'roles/jitsi-install/tasks/main.yml')
| -rw-r--r-- | roles/jitsi-install/tasks/main.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/roles/jitsi-install/tasks/main.yml b/roles/jitsi-install/tasks/main.yml index f022e53..ccf9d70 100644 --- a/roles/jitsi-install/tasks/main.yml +++ b/roles/jitsi-install/tasks/main.yml @@ -1,4 +1,56 @@ --- +- name: Installation des prérequis + apt: + name: + - sshguard + - ufw + - gnupg2 + - nginx-full + update_cache: true + state: present + +- name: Mise en place des règle firewall tcp et udp + # source : https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-quickstart#setup-and-configure-your-firewall + ufw: + state: enabled + rule: allow + port: '{{ item[0] }}' + proto: '{{ item[1] }}' + loop: + - ['80', 'tcp'] + - ['443', 'tcp'] + - ['4443', 'tcp'] + - ['22', 'tcp'] + - ['10000', 'udp'] + - ['3478', 'udp'] + - ['5349', 'tcp'] + - ['5222', 'tcp'] # XMPP port for recorder + +- name: Import de la clé GPG # source: https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-quickstart#add-the-jitsi-package-repository + apt_key: + id: FFD65A0DA2BEBDEB73D44C8BB4D2D216F1FD7806 + url: https://download.jitsi.org/jitsi-key.gpg.key + keyring: /etc/apt/trusted.gpg.d/jitsi.gpg + +- name: Ajout du depot jitsi + apt_repository: + repo: deb [signed-by=/etc/apt/trusted.gpg.d/jitsi.gpg] https://download.jitsi.org stable/ + update_cache: true + +- name: Application du hostname avant installation + debconf: + name: jitsi-meet-web-config + question: jitsi-videobridge/jvb-hostname + value: '{{ inventory_hostname }}' + vtype: string + +- name: On veut un certificat autogénéré + debconf: + name: jitsi-meet-web-config + question: jitsi-meet/cert-choice + value: "Generate a new self-signed certificate (You will later get a chance to obtain a Let's encrypt certificate)" + vtype: string + - name: installation de jitsi apt: name: jitsi-meet |
