-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncthing.yaml
31 lines (30 loc) · 1014 Bytes
/
syncthing.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- name: "Setup syncthing."
hosts: localhost
connection: local
tasks:
# install syncthing from PPA
- name: syncthing - import release key
become: yes
apt_key:
id: 37C84554E7E0A261E4F76E1ED26E6ED000654A3E
url: https://syncthing.net/release-key.gpg
keyring: /usr/share/keyrings/syncthing-archive-keyring.gpg
- name: syncthing - add PPA
become: yes
apt_repository:
repo: deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable
- name: syncthing - install
become: yes
apt:
name: syncthing
state: present
- name: syncthing - create autostart directory
file:
path: ~/.config/autostart
state: directory
- name: syncthing - symlink autostart file
file:
src: "{{ playbook_dir }}/config/autostart/syncthing-start.desktop"
dest: ~/.config/autostart/syncthing-start.desktop
state: link
force: true