Sfoglia il codice sorgente

Upgrade syncthing to 1.21.0

Colin Powell 2 anni fa
parent
commit
9c43f545c7
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7 4
      ansible/roles/syncthing/tasks/main.yml

+ 7 - 4
ansible/roles/syncthing/tasks/main.yml

@@ -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