arch-setup/tasks/syncthing.yml

14 lines
438 B
YAML

- name: create configuration dir
file:
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