2021-12-09 00:52:05 +02:00
|
|
|
---
|
|
|
|
#
|
2021-12-09 12:40:25 +02:00
|
|
|
# Start Necessary Services
|
2021-12-09 00:52:05 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
- name: Ensure matrix-jitsi-prosody container is running
|
|
|
|
systemd:
|
|
|
|
state: started
|
|
|
|
name: matrix-jitsi-prosody
|
2021-12-09 12:40:25 +02:00
|
|
|
register: matrix_jitsi_prosody_start_result
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Tasks related to configuring Jitsi internal authentication
|
|
|
|
#
|
2021-12-09 00:52:05 +02:00
|
|
|
|
2021-12-09 12:40:25 +02:00
|
|
|
- name: Ensure Jitsi internal authentication users are configured
|
2021-12-09 00:52:05 +02:00
|
|
|
shell: "docker exec matrix-jitsi-prosody prosodyctl --config /config/prosody.cfg.lua register {{ item.username | quote }} meet.jitsi {{ item.password | quote }}"
|
|
|
|
with_items: "{{ matrix_jitsi_prosody_auth_internal_accounts }}"
|
|
|
|
when:
|
|
|
|
- matrix_jitsi_auth_type == "internal"
|
2021-12-09 12:40:25 +02:00
|
|
|
- matrix_jitsi_prosody_auth_internal_accounts|length > 0
|
2021-12-09 00:52:05 +02:00
|
|
|
|
|
|
|
#
|
2021-12-09 12:40:25 +02:00
|
|
|
# Tasks related to configuring other Jitsi authentication mechanisms
|
2021-12-09 00:52:05 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
2021-12-09 12:40:25 +02:00
|
|
|
# Tasks related to cleaning after Jitsi authentication configuration
|
2021-12-09 00:52:05 +02:00
|
|
|
#
|
2021-12-09 12:40:25 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Stop Necessary Services
|
|
|
|
#
|
|
|
|
- name: Ensure matrix-jitsi-prosody container is stopped if necessary
|
2021-12-09 00:52:05 +02:00
|
|
|
systemd:
|
|
|
|
state: stopped
|
2021-12-09 12:40:25 +02:00
|
|
|
name: matrix-jitsi-prosody
|
2022-02-05 22:32:54 +02:00
|
|
|
when: matrix_jitsi_prosody_start_result.changed|bool
|