--- - name: Set initial install modes block: - set_fact: jitsi_videobridge_install_mode='none' - set_fact: jitsi_videobridge_current_version='' 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 != jitsi_videobridge_version 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 block: - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ jitsi_root_dir }}/meta/ansible_videobridge_xmpp_secret" - set_fact: jitsi_videobridge_xmpp_secret={{ rand_pass }} when: jitsi_videobridge_xmpp_secret is not defined tags: jitsi - name: Generate a random secret for jicofo block: - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ jitsi_root_dir }}/meta/ansible_jicofo_xmpp_secret" - set_fact: jitsi_jicofo_xmpp_secret={{ rand_pass }} when: jitsi_jicofo_xmpp_secret is not defined tags: jitsi - name: Generate a random password for the focus account block: - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ jitsi_root_dir }}/meta/ansible_jicofo_focus_pass" - set_fact: jitsi_jicofo_focus_pass={{ rand_pass }} when: jitsi_jicofo_focus_pass is not defined tags: jitsi - name: Generate a random secret for jigasi block: - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ jitsi_root_dir }}/meta/ansible_jigasi_xmpp_secret" - set_fact: jitsi_jigasi_xmpp_secret={{ rand_pass }} when: jitsi_jigasi_xmpp_secret is not defined tags: jitsi - name: Generate a random password for jigasi XMPP account block: - import_tasks: ../includes/get_rand_pass.yml vars: - pass_file: "{{ jitsi_root_dir }}/meta/ansible_jigasi_pass" - set_fact: jitsi_jigasi_pass={{ rand_pass }} when: jitsi_jigasi_pass is not defined tags: jitsi - name: Set certificate path set_fact: jitsi_cert_path='/etc/prosody/certs/jitsi.crt' when: jitsi_cert_path is not defined tags: jitsi - name: Set key path set_fact: jitsi_key_path='/etc/prosody/certs/jitsi.key' when: jitsi_key_path is not defined tags: jitsi - name: Set anonymous domain for jitsi meet block: - set_fact: jitsi_anonymousdomain: hosts: anonymousdomain: guest.{{ jitsi_domain }} - set_fact: jitsi_meet_conf={{ jitsi_anonymousdomain | combine(jitsi_meet_conf, recursive=True) }} when: jitsi_auth == 'ldap' tags: jisti