From 3554787e09ddba4dd129beae1b6619e94554f19f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 24 Mar 2022 16:53:05 +0300 Subject: feat: add syncthing playbook --- syncthing.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 syncthing.yaml 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 -- cgit v1.2.3