Don't overwrite syncthing config

see https://docs.syncthing.net/users/config.html#config-file-format
This commit is contained in:
Sonny Bakker 2024-08-06 10:19:33 +02:00
parent 87cb122f82
commit 383b835101

View file

@ -3,9 +3,12 @@
path: '{{ xdg_config_dir }}/syncthing'
state: directory
# Syncthing config files should not be overwritten,
# see https://docs.syncthing.net/users/config.html#config-file-format
- name: copy configuration file
template:
src: 'templates/{{ platform }}/syncthing.j2'
dest: '{{ xdg_config_dir }}/syncthing/config.xml'
mode: '0600'
force: false
notify: restart syncthing