Fixed unnecessary checking of user attributes, added check for matrix_jitsi_enable_auth boolean

This commit is contained in:
ppacheco28 2021-12-09 07:54:40 -03:00
parent 4c25c1df06
commit 0c101f20c4

View File

@ -35,9 +35,9 @@
These defaults are insecure. Jitsi should be rebuilt with secure values. These defaults are insecure. Jitsi should be rebuilt with secure values.
Refer to the "Rebuilding your Jitsi installation" section in our setup instructions (docs/configuring-playbook-jitsi.md). Refer to the "Rebuilding your Jitsi installation" section in our setup instructions (docs/configuring-playbook-jitsi.md).
when: when:
- matrix_jitsi_auth_type == "internal" - matrix_jitsi_enable_auth|bool
- item.username == '' - matrix_jitsi_auth_type == 'internal'
- item.password == '' - matrix_jitsi_prosody_auth_internal_accounts|length == '0'
with_items: "{{ matrix_jitsi_prosody_auth_internal_accounts }}" with_items: "{{ matrix_jitsi_prosody_auth_internal_accounts }}"