From 383b835101d0abdcaea4d3be3adfe9b1c48b9ae7 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Tue, 6 Aug 2024 10:19:33 +0200 Subject: [PATCH] Don't overwrite syncthing config see https://docs.syncthing.net/users/config.html#config-file-format --- tasks/syncthing.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/syncthing.yml b/tasks/syncthing.yml index 5f9b44c..5e9b5bc 100644 --- a/tasks/syncthing.yml +++ b/tasks/syncthing.yml @@ -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