debian-setup/tasks/syncthing.yml

12 lines
280 B
YAML

- name: copy syncthing template
template:
src: 'templates/syncthing.j2'
dest: '{{ ansible_env.HOME }}/.config/syncthing/config.xml'
mode: '0600'
- name: restart syncthing service
systemd:
name: syncthing
state: restarted
enabled: true
scope: user