Просмотр исходного кода

Make maubot automatically create its own user.

pull/3376/head
Fabio Bonelli 1 год назад
Родитель
Сommit
a508d2a069
3 измененных файлов: 20 добавлений и 1 удалений
  1. +9
    -1
      docs/configuring-playbook-bot-maubot.md
  2. +6
    -0
      group_vars/matrix_servers
  3. +5
    -0
      roles/custom/matrix-bot-maubot/defaults/main.yml

+ 9
- 1
docs/configuring-playbook-bot-maubot.md Просмотреть файл

@@ -27,9 +27,17 @@ maubot administration interface.
After configuring the playbook, run the [installation](installing.md) command again:

```
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-users-created,start
```

**Notes**:

- the `ensure-matrix-users-created` playbook tag makes the playbook automatically create the bot's user account

- if you change the bot password (`matrix_bot_maubot_initial_password` in your `vars.yml` file) subsequently,
the bot user's credentials on the homeserver won't be updated automatically.
If you'd like to change the bot user's password, use a tool like [synapse-admin](configuring-playbook-synapse-admin.md) to change it.

## Usage

You can visit `matrix.<your-domain>/_matrix/maubot/` to manage your available plugins, clients and instances.


+ 6
- 0
group_vars/matrix_servers Просмотреть файл

@@ -5174,6 +5174,12 @@ matrix_user_creator_users_auto: |
'initial_password': matrix_bot_buscarron_password,
'initial_type': 'bot',
}] if matrix_bot_buscarron_enabled else [])
+
([{
'username': matrix_bot_maubot_login,
'initial_password': matrix_bot_maubot_initial_password,
'initial_type': 'bot',
}] if matrix_bot_maubot_enabled else [])
}}

######################################################################


+ 5
- 0
roles/custom/matrix-bot-maubot/defaults/main.yml Просмотреть файл

@@ -5,6 +5,11 @@

matrix_bot_maubot_enabled: true

matrix_bot_maubot_login: bot.maubot
# This is just initial password and it will not manage subsequent password changes.
# Use a tool like synapse-admin if you need to change it.
matrix_bot_maubot_initial_password: "{{ lookup('password', '/dev/null', length=64 }}"

matrix_bot_maubot_scheme: https
matrix_bot_maubot_hostname: ''
matrix_bot_maubot_path_prefix: /_matrix/maubot


Загрузка…
Отмена
Сохранить