autostart syncthing

This commit is contained in:
Pim Kunis 2022-12-15 22:39:05 +01:00
parent dfc2f641cb
commit a9143e842d

View file

@ -22,4 +22,9 @@
copy: copy:
src: "{{ role_path }}/files/cert.pem" src: "{{ role_path }}/files/cert.pem"
dest: ~/.config/syncthing/cert.pem dest: ~/.config/syncthing/cert.pem
- name: Enable Syncthing
become: true
systemd:
enabled: true
name: "syncthing@{{ ansible_user_id }}"
state: restarted