mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-14 11:20:16 +00:00
c3dc64b1d5
We no longer ask users to create Matrix user accounts for these bots: - Postmoogle - Honoroit - Reminder Bot Other bots and services (matrix-registration-bot, maubot, mjolnir, Dimension, etc.) require an Access Token to run (not a password), so this new role doesn't help for them. It does help for the above bots though, and for defining your own "initial user accounts" in the `matrix_user_creator_users_additional` variable.
17 lines
651 B
YAML
17 lines
651 B
YAML
---
|
|
|
|
- name: Fail if invalid username
|
|
ansible.builtin.fail:
|
|
msg: "Empty usernames values are not allowed ({{ user }})"
|
|
when: not (user.username | default(''))
|
|
|
|
- name: Fail if invalid initial_password for user - {{ user.username }}
|
|
ansible.builtin.fail:
|
|
msg: "Empty initial_password values are not allowed"
|
|
when: not (user.initial_password | default(''))
|
|
|
|
- name: Fail if invalid initial_type for user - {{ user.username }}
|
|
ansible.builtin.fail:
|
|
msg: "User initial_type `{{ user.initial_type | default('undefined') }}` is not supported"
|
|
when: user.initial_type | default('undefined') not in ['admin', 'user', 'bot', 'support']
|