20 lines
465 B
YAML
20 lines
465 B
YAML
|
- name: Install Syncthing
|
||
|
apt:
|
||
|
name: syncthing
|
||
|
state: latest
|
||
|
update_cache: true
|
||
|
- name: Create syncthing user
|
||
|
user:
|
||
|
name: syncthing
|
||
|
home: /home/syncthing
|
||
|
state: present
|
||
|
- name: Copy Syncthing configuration
|
||
|
template:
|
||
|
src: "{{ role_path }}/templates/config.xml.j2"
|
||
|
dest: /home/syncthing/.config/syncthing/config.xml
|
||
|
- name: Enable Syncthing service
|
||
|
systemd:
|
||
|
name: syncthing@syncthing
|
||
|
enabled: true
|
||
|
state: restarted
|