1
2
3
4
5
6
7
8
9
10 ---
- name: "[OpenRC] Create service file: syncthing-{{ services.syncthing.user }}"
template:
src: openrc-service.j2
dest: "/etc/init.d/syncthing-{{ services.syncthing.user }}"
mode: 0755
when:
- ansible_service_mgr == "openrc"
notify: "Restart syncthing"