Added telegram

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-18 19:44:27 +01:00
parent b41e63fb8a
commit f16641aa87
2 changed files with 17 additions and 14 deletions

View File

@ -86,18 +86,21 @@
- name: flush docker service
meta: flush_handlers
- name: wait for containers
pause:
seconds: "{{pause_duration}}"
- name: wait for registration files
wait_for:
path: "{{docker_compose_instance_directory}}{{item.bridge_name}}/registration.yaml"
state: present
timeout: 120
loop: "{{ bridges }}"
- name: create registration files
- name: move registration files
command:
cmd: docker compose exec {{item.bridge_name}} /usr/bin/{{item.bridge_name}} -g -c /data/config.yaml -r {{registration_file_folder}}{{item.bridge_name}}.registration.yaml
cmd: mv {{docker_compose_instance_directory}}{{item.bridge_name}}/registration.yaml {{docker_compose_instance_directory}}registrations/{{item.bridge_name}}.registration.yaml
chdir: "{{ docker_compose_instance_directory }}"
loop: "{{ bridges }}"
- name: set read and execute permissions for the registration file in the container
command:
cmd: docker compose exec {{item.bridge_name}} chmod a+rx {{registration_file_folder}}{{item.bridge_name}}.registration.yaml
chdir: "{{ docker_compose_instance_directory }}"
- name: "change file permissions"
file:
path: "{{docker_compose_instance_directory}}registrations/{{item.bridge_name}}.registration.yaml"
mode: 0755
loop: "{{ bridges }}"

View File

@ -11,10 +11,10 @@ bridges:
database_name: "mautrix_whatsapp_bridge"
bridge_name: "mautrix-whatsapp"
# - database_password: "{{ mautrix_telegram_bridge_database_password }}"
# database_username: "mautrix_telegram_bridge"
# database_name: "mautrix_telegram_bridge"
# bridge_name: "mautrix-telegram"
- database_password: "{{ mautrix_telegram_bridge_database_password }}"
database_username: "mautrix_telegram_bridge"
database_name: "mautrix_telegram_bridge"
bridge_name: "mautrix-telegram"
- database_password: "{{ mautrix_signal_bridge_database_password }}"
database_username: "mautrix_signal_bridge"