diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-03-24 16:53:05 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-03-24 16:53:46 +0300 |
commit | 3554787e09ddba4dd129beae1b6619e94554f19f (patch) | |
tree | bcd4e537a4ceed437e6f3df5df7ce126bb50e2b0 | |
parent | 29d16c46dfbc8eb9a31b10a5bf72f1330c890d5c (diff) | |
download | infrastructure-3554787e09ddba4dd129beae1b6619e94554f19f.tar.gz |
feat: add syncthing playbook
-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 |