syncthing
This commit is contained in:
parent
be661ebb56
commit
dfc2f641cb
8 changed files with 318 additions and 3 deletions
25
roles/syncthing/tasks/main.yml
Normal file
25
roles/syncthing/tasks/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
- name: Install Syncthing
|
||||
become: true
|
||||
apt:
|
||||
state: latest
|
||||
update_cache: true
|
||||
cache_valid_time: 86400
|
||||
pkg:
|
||||
- syncthing
|
||||
- name: Create Syncthing configuration directory
|
||||
file:
|
||||
path: ~/.config/syncthing
|
||||
state: directory
|
||||
- name: Copy Syncthing configuration
|
||||
copy:
|
||||
src: "{{ role_path }}/files/config.xml"
|
||||
dest: ~/.config/syncthing/config.xml
|
||||
- name: Copy Syncthing private key
|
||||
copy:
|
||||
src: "{{ role_path }}/files/key.pem"
|
||||
dest: ~/.config/syncthing/key.pem
|
||||
- name: Copy Syncthing certificate
|
||||
copy:
|
||||
src: "{{ role_path }}/files/cert.pem"
|
||||
dest: ~/.config/syncthing/cert.pem
|
||||
|
Reference in a new issue