2021-12-08 22:52:05 +00:00
|
|
|
---
|
|
|
|
#
|
2021-12-09 10:40:25 +00:00
|
|
|
# Start Necessary Services
|
2021-12-08 22:52:05 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
- name: Ensure matrix-jitsi-prosody container is running
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.systemd:
|
2021-12-08 22:52:05 +00:00
|
|
|
state: started
|
|
|
|
name: matrix-jitsi-prosody
|
2021-12-09 10:40:25 +00:00
|
|
|
register: matrix_jitsi_prosody_start_result
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Tasks related to configuring Jitsi internal authentication
|
|
|
|
#
|
2021-12-08 22:52:05 +00:00
|
|
|
|
2021-12-09 10:40:25 +00:00
|
|
|
- name: Ensure Jitsi internal authentication users are configured
|
2022-11-04 14:39:35 +00:00
|
|
|
ansible.builtin.shell: "{{ devture_systemd_docker_base_host_command_docker }} exec matrix-jitsi-prosody prosodyctl --config /config/prosody.cfg.lua register {{ item.username | quote }} meet.jitsi {{ item.password | quote }}"
|
2021-12-08 22:52:05 +00:00
|
|
|
with_items: "{{ matrix_jitsi_prosody_auth_internal_accounts }}"
|
|
|
|
when:
|
|
|
|
- matrix_jitsi_auth_type == "internal"
|
2021-12-09 10:40:25 +00:00
|
|
|
- matrix_jitsi_prosody_auth_internal_accounts|length > 0
|
2022-07-18 09:28:39 +00:00
|
|
|
register: matrix_jitsi_user_configuration_result
|
|
|
|
changed_when: matrix_jitsi_user_configuration_result.rc == 0
|
2022-12-26 05:58:32 +00:00
|
|
|
no_log: true
|
2021-12-08 22:52:05 +00:00
|
|
|
|
|
|
|
#
|
2021-12-09 10:40:25 +00:00
|
|
|
# Tasks related to configuring other Jitsi authentication mechanisms
|
2021-12-08 22:52:05 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
2021-12-09 10:40:25 +00:00
|
|
|
# Tasks related to cleaning after Jitsi authentication configuration
|
2021-12-08 22:52:05 +00:00
|
|
|
#
|
2021-12-09 10:40:25 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Stop Necessary Services
|
|
|
|
#
|
|
|
|
- name: Ensure matrix-jitsi-prosody container is stopped if necessary
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.systemd:
|
2021-12-08 22:52:05 +00:00
|
|
|
state: stopped
|
2021-12-09 10:40:25 +00:00
|
|
|
name: matrix-jitsi-prosody
|
2022-07-18 08:22:05 +00:00
|
|
|
when: matrix_jitsi_prosody_start_result.changed | bool
|