Check if Config exists in Mautrix-Telegram playbook

This commit is contained in:
Mathias Teier 2021-01-31 20:53:43 +01:00
parent c0eacb74df
commit 99cd550cd9
No known key found for this signature in database
GPG Key ID: AF77EC46DA9525FE
1 changed files with 8 additions and 0 deletions

View File

@ -30,10 +30,18 @@
owner: root
when: mautrixtelegram_data_dir_stat.islnk is not defined
- name: Check if config exists
fstat:
path: /var/mautrix-telegram/config.yaml
register: config_stat
#IMPORTANT: Mautrix-Telegram modifies config on first start to include the regisration keys
#for the Matrix home serer. Therefore NEVER overwrite an existing config, but edit it manually
- name: Copy config
copy:
src: config/config.yaml
dest: /var/mautrix-telegram/config.yaml
when: config_stat.islnk is not defined
- name: Copy compose file
copy: