summaryrefslogtreecommitdiff
path: root/syncthing.yaml
blob: 3888495a8a3f071d1cdeca42dd9adfd9b0842dd5 (plain)
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
---
- name: Setup website
  hosts: raspberry
  tasks:
     - name: Install packages
       become: true
       tags:
       - slow
       apt:
         pkg:
         - syncthing

     - name: Start service
       become: true
       systemd:
         name: syncthing@eug-vs
         state: started

  # Make sure to set GUI user & password imediately!
     - name: Expose web interface
       shell: sed -i 's/127.0.0.1:8384/0.0.0.0:8384/' ~/.config/syncthing/config.xml

     - name: Restart and enable service
       become: true
       systemd:
         name: syncthing@eug-vs
         enabled: yes
         state: restarted