ansible vault for syncthing keys

This commit is contained in:
Pim Kunis 2022-12-01 23:05:11 +01:00
parent 8e8564216e
commit 6931466017
5 changed files with 80 additions and 5 deletions

View file

@ -12,6 +12,14 @@
template:
src: "{{ role_path }}/templates/config.xml.j2"
dest: /home/syncthing/.config/syncthing/config.xml
- name: Copy Syncthing private key
copy:
src: "{{ role_path }}/files/key.pem"
dest: /home/syncthing/.config/syncthing/key.pem
- name: Copy Syncthing certificate
copy:
src: "{{ role_path }}/files/cert.pem"
dest: /home/syncthing/.config/syncthing/cert.pem
- name: Enable Syncthing service
systemd:
name: syncthing@syncthing