Add mautrix-whatsapp role

This commit is contained in:
uumas
2026-09-21 05:53:00 +03:00
parent d6518d404e
commit 2d34f7a163
6 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
---
# vim:ft=yaml
# {{ ansible_managed }}
network:
os_name: "{{ mautrix_whatsapp_os_name }}"
send_presence_on_typing: true
url_previews: true
extev_polls: true
bridge:
cleanup_on_logout:
enabled: true
manual:
private: nothing
relayed: nothing
shared_no_users: kick
shared_has_users: kick
bad_credentials:
private: nothing
relayed: nothing
shared_no_users: kick
shared_has_users: kick
relay:
enabled: true
admin_only: true
default_relays:
{{ mautrix_whatsapp_default_relays | to_nice_yaml | indent(4) }}
permissions:
"*": relay
{% for item in mautrix_whatsapp_permissions %}
"{{ item.key }}": {{ item.value }}
{% endfor %}
database:
type: postgres
homeserver:
address: http://synapse:8009
domain: {{ mautrix_whatsapp_homeserver_name }}
async_media: true
appservice:
address: http://mautrix-whatsapp:8080
hostname: 0.0.0.0
port: 8080
id: whatsapp
bot:
username: whatsappbot
displayname: {{ mautrix_whatsapp_bot_displayname }}
matrix:
delivery_receipts: true
provisioning:
shared_secret: disable
encryption:
allow: true
default: false
msc4190: true
allow_key_sharing: true
env_config_prefix: BRIDGE_
logging:
min_level: info
writers:
- type: stdout
format: pretty-colored