Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit eacebbf

Browse files
committed
added enable variables
1 parent 9b97d4f commit eacebbf

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# ansible-role-matrix
22

3-
intended to have only one user - due to incompatibility with bridges...
3+
intended to have only one user - due to incompatibility with bridges...
4+
5+
Currently this bridge officially supports only the mautrix-whatsapp bridge, even though telegram, signal and discord should also be working.

defaults/main.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,25 @@ matrix_synapse_postgresql_username: synapse
88
matrix_synapse_postgresql_password:
99
matrix_synapse_postgresql_database: synapse
1010

11+
matrix_enable_whatsapp: false
1112
matrix_whatsapp_postgresql_username: mautrix-whatsapp
1213
matrix_whatsapp_postgresql_password:
1314
matrix_whatsapp_postgresql_database: mautrix-whatsapp
1415

16+
matrix_enable_signal: false
1517
matrix_signal_postgresql_username: mautrix-signal
1618
matrix_signal_postgresql_password:
1719
matrix_signal_postgresql_database: mautrix-signal
1820

21+
matrix_enable_telegram: false
1922
matrix_telegram_postgresql_username: mautrix-telegram
2023
matrix_telegram_postgresql_password:
2124
matrix_telegram_postgresql_database: mautrix-telegram
2225

2326
matrix_telegram_api_id:
2427
matrix_telegram_api_hash:
2528

29+
matrix_enable_discord: false
2630
matrix_discord_postgresql_username: mautrix-discord
2731
matrix_discord_postgresql_password:
2832
matrix_discord_postgresql_database: mautrix-discord

tasks/main.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
- name: "Setup mautrix-whatsapp"
1515
when:
16+
- "matrix_enable_whatsapp"
1617
- "matrix_whatsapp_postgresql_username is defined"
1718
- "matrix_whatsapp_postgresql_password is defined"
1819
- "matrix_whatsapp_postgresql_database is defined"
@@ -23,6 +24,7 @@
2324

2425
#- name: "Setup mautrix-telegram"
2526
# when:
27+
# - "matrix_enable_telegram"
2628
# - "matrix_telegram_postgresql_username is defined"
2729
# - "matrix_telegram_postgresql_password is defined"
2830
# - "matrix_telegram_postgresql_database is defined"
@@ -37,6 +39,7 @@
3739

3840
#- name: "Setup mautrix-signal"
3941
# when:
42+
# - "matrix_enable_signal"
4043
# - "matrix_signal_postgresql_username is defined"
4144
# - "matrix_signal_postgresql_password is defined"
4245
# - "matrix_signal_postgresql_database is defined"
@@ -47,6 +50,7 @@
4750

4851
#- name: "Setup mautrix-discord"
4952
# when:
53+
# - "matrix_enable_discord"
5054
# - "matrix_discord_postgresql_username is defined"
5155
# - "matrix_discord_postgresql_password is defined"
5256
# - "matrix_discord_postgresql_database is defined"

0 commit comments

Comments
 (0)