add syncthing for os3 desktop

This commit is contained in:
Pim Kunis 2023-02-11 19:27:38 +01:00
parent 3ac5371313
commit 98b79f5525
11 changed files with 184 additions and 134 deletions

View file

@ -11,14 +11,16 @@
src: "{{ role_path }}/templates/config.xml.j2"
dest: ~/.config/syncthing/config.xml
register: config
vars:
profile: "{{ syncthing[syncthing_profile] }}"
- name: Copy Syncthing private key
copy:
src: "{{ role_path }}/files/key.pem"
src: "{{ role_path }}/files/{{ syncthing_profile }}/key.pem"
dest: ~/.config/syncthing/key.pem
register: private_key
- name: Copy Syncthing certificate
copy:
src: "{{ role_path }}/files/cert.pem"
src: "{{ role_path }}/files/{{ syncthing_profile }}/cert.pem"
dest: ~/.config/syncthing/cert.pem
register: certificate
- name: Enable Syncthing