diff options
-rw-r--r-- | syncthing.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/syncthing.yaml b/syncthing.yaml new file mode 100644 index 0000000..3888495 --- /dev/null +++ b/syncthing.yaml @@ -0,0 +1,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 |