|
@@ -2,17 +2,17 @@
|
|
|
- name: Fetched syncthing release
|
|
|
shell:
|
|
|
chdir: /tmp
|
|
|
- cmd: fetch https://github.com/syncthing/syncthing/releases/download/v1.19.2/syncthing-freebsd-amd64-v1.19.2.tar.gz
|
|
|
+ cmd: fetch https://github.com/syncthing/syncthing/releases/download/v1.21.0/syncthing-freebsd-amd64-v1.21.0.tar.gz
|
|
|
|
|
|
- name: Unpacked syncthing release
|
|
|
shell:
|
|
|
chdir: /tmp
|
|
|
- cmd: tar zxf syncthing-freebsd-amd64-v1.19.2.tar.gz
|
|
|
+ cmd: tar zxf syncthing-freebsd-amd64-v1.21.0.tar.gz
|
|
|
|
|
|
- name: Syncthing installed
|
|
|
shell:
|
|
|
- chdir: /tmp/syncthing-freebsd-amd64-v1.19.2
|
|
|
- cmd: "mv syncthing /usr/local/bin/syncthing & mv etc/freebsd-rc/syncthing /usr/local/etc/rc.d/syncthing & chmod +x /usr/local/etc/rc.d/syncthing"
|
|
|
+ chdir: /tmp/syncthing-freebsd-amd64-v1.21.0
|
|
|
+ cmd: "cp syncthing /usr/local/bin/syncthing & cp etc/freebsd-rc/syncthing /usr/local/etc/rc.d/syncthing & chmod +x /usr/local/etc/rc.d/syncthing"
|
|
|
warn: false
|
|
|
|
|
|
- name: Syncthing enabled
|
|
@@ -21,6 +21,9 @@
|
|
|
- name: Syncthing group set to wheel
|
|
|
shell: sysrc syncthing_group="wheel"
|
|
|
|
|
|
+- name: Syncthing user set to root
|
|
|
+ shell: sysrc syncthing_group="root"
|
|
|
+
|
|
|
- name: Ensure syncthing is running
|
|
|
service: name=syncthing state=started
|
|
|
|