Check if Config exists in Mautrix-Telegram playbook
This commit is contained in:
parent
c0eacb74df
commit
99cd550cd9
|
@ -30,10 +30,18 @@
|
||||||
owner: root
|
owner: root
|
||||||
when: mautrixtelegram_data_dir_stat.islnk is not defined
|
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
|
- name: Copy config
|
||||||
copy:
|
copy:
|
||||||
src: config/config.yaml
|
src: config/config.yaml
|
||||||
dest: /var/mautrix-telegram/config.yaml
|
dest: /var/mautrix-telegram/config.yaml
|
||||||
|
when: config_stat.islnk is not defined
|
||||||
|
|
||||||
- name: Copy compose file
|
- name: Copy compose file
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in New Issue