mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Added telegram
This commit is contained in:
parent
b41e63fb8a
commit
f16641aa87
@ -86,18 +86,21 @@
|
|||||||
- name: flush docker service
|
- name: flush docker service
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
- name: wait for containers
|
- name: wait for registration files
|
||||||
pause:
|
wait_for:
|
||||||
seconds: "{{pause_duration}}"
|
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:
|
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 }}"
|
chdir: "{{ docker_compose_instance_directory }}"
|
||||||
loop: "{{ bridges }}"
|
loop: "{{ bridges }}"
|
||||||
|
|
||||||
- name: set read and execute permissions for the registration file in the container
|
- name: "change file permissions"
|
||||||
command:
|
file:
|
||||||
cmd: docker compose exec {{item.bridge_name}} chmod a+rx {{registration_file_folder}}{{item.bridge_name}}.registration.yaml
|
path: "{{docker_compose_instance_directory}}registrations/{{item.bridge_name}}.registration.yaml"
|
||||||
chdir: "{{ docker_compose_instance_directory }}"
|
mode: 0755
|
||||||
loop: "{{ bridges }}"
|
loop: "{{ bridges }}"
|
@ -11,10 +11,10 @@ bridges:
|
|||||||
database_name: "mautrix_whatsapp_bridge"
|
database_name: "mautrix_whatsapp_bridge"
|
||||||
bridge_name: "mautrix-whatsapp"
|
bridge_name: "mautrix-whatsapp"
|
||||||
|
|
||||||
# - database_password: "{{ mautrix_telegram_bridge_database_password }}"
|
- database_password: "{{ mautrix_telegram_bridge_database_password }}"
|
||||||
# database_username: "mautrix_telegram_bridge"
|
database_username: "mautrix_telegram_bridge"
|
||||||
# database_name: "mautrix_telegram_bridge"
|
database_name: "mautrix_telegram_bridge"
|
||||||
# bridge_name: "mautrix-telegram"
|
bridge_name: "mautrix-telegram"
|
||||||
|
|
||||||
- database_password: "{{ mautrix_signal_bridge_database_password }}"
|
- database_password: "{{ mautrix_signal_bridge_database_password }}"
|
||||||
database_username: "mautrix_signal_bridge"
|
database_username: "mautrix_signal_bridge"
|
||||||
|
Loading…
Reference in New Issue
Block a user