- name: create syncthing directory file: path: '{{ ansible_env.HOME }}/.config/syncthing' mode: '755' state: directory - name: copy syncthing template template: src: 'templates/syncthing.j2' dest: '{{ ansible_env.HOME }}/.config/syncthing/config.xml' mode: '0600' notify: restart syncthing service