|
|
@ -1,40 +1,9 @@ |
|
|
|
--- |
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
- name: Set initial install modes |
|
|
|
|
|
|
|
block: |
|
|
|
|
|
|
|
- set_fact: jitsi_videobridge_install_mode='none' |
|
|
|
|
|
|
|
- set_fact: jitsi_videobridge_current_version='' |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set if jigasi is used |
|
|
|
- name: Set if jigasi is used |
|
|
|
set_fact: jitsi_jigasi={{ (jitsi_jigasi_sip_user is defined and jitsi_jigasi_sip_secret is defined) | ternary(True, False) }} |
|
|
|
set_fact: jitsi_jigasi={{ (jitsi_jigasi_sip_user is defined and jitsi_jigasi_sip_secret is defined) | ternary(True, False) }} |
|
|
|
tags: jitsi |
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
- name: Check if videobridge is installed |
|
|
|
|
|
|
|
stat: path={{ jitsi_root_dir }}/meta/ansible_videobridge_version |
|
|
|
|
|
|
|
register: jitsi_videobridge_version_file |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- block: |
|
|
|
|
|
|
|
- name: Check installed version |
|
|
|
|
|
|
|
slurp: src={{ jitsi_root_dir }}/meta/ansible_videobridge_version |
|
|
|
|
|
|
|
register: jitsi_videobridge_current_version |
|
|
|
|
|
|
|
- set_fact: jitsi_videobridge_current_version={{ jitsi_videobridge_current_version.content | b64decode | trim }} |
|
|
|
|
|
|
|
when: jitsi_videobridge_version_file.stat.exists |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set upgrade mode |
|
|
|
|
|
|
|
set_fact: jitsi_videobridge_install_mode='upgrade' |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
- jitsi_videobridge_version_file.stat.exists |
|
|
|
|
|
|
|
- jitsi_videobridge_current_version | string != jitsi_videobridge_version | string |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set videobridge install mode |
|
|
|
|
|
|
|
set_fact: jitsi_videobridge_install_mode='install' |
|
|
|
|
|
|
|
when: not jitsi_videobridge_version_file.stat.exists |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Generate a random secret for videobridge |
|
|
|
- name: Generate a random secret for videobridge |
|
|
|
block: |
|
|
|
block: |
|
|
|
- import_tasks: ../includes/get_rand_pass.yml |
|
|
|
- import_tasks: ../includes/get_rand_pass.yml |
|
|
@ -100,3 +69,27 @@ |
|
|
|
when: jitsi_auth == 'ldap' |
|
|
|
when: jitsi_auth == 'ldap' |
|
|
|
tags: jisti |
|
|
|
tags: jisti |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if cert file exist |
|
|
|
|
|
|
|
stat: path={{ jitsi_cert_path }} |
|
|
|
|
|
|
|
register: jitsi_cert_file |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if key file exist |
|
|
|
|
|
|
|
stat: path={{ jitsi_key_path }} |
|
|
|
|
|
|
|
register: jitsi_key_file |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if videobridge is built |
|
|
|
|
|
|
|
stat: path={{ jitsi_root_dir }}/videobridge/jvb.sh |
|
|
|
|
|
|
|
register: jitsi_videobridge_script |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if jicofo is built |
|
|
|
|
|
|
|
stat: path={{ jitsi_root_dir }}/jicofo/jicofo.sh |
|
|
|
|
|
|
|
register: jitsi_jicofo_script |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if jigasi is built |
|
|
|
|
|
|
|
stat: path={{ jitsi_root_dir }}/jigasi/jigasi.sh |
|
|
|
|
|
|
|
register: jitsi_jigasi_script |
|
|
|
|
|
|
|
tags: jitsi |
|
|
|