2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "syncthing/map.jinja" import syncthing with context %}
|
|
|
|
syncthing-archive-extract:
|
|
|
|
archive.extracted:
|
2021-11-14 13:37:49 +01:00
|
|
|
- name: {{ syncthing.release_dir }}/syncthing-{{ syncthing.version }}
|
2020-07-10 00:58:55 +02:00
|
|
|
- source: {{ syncthing.mirror }}/v{{ syncthing.version }}/syncthing-{{ syncthing.os }}-{{ syncthing.arch }}-v{{ syncthing.version }}.tar.gz
|
2020-09-12 17:41:35 +02:00
|
|
|
- enforce_toplevel: false
|
|
|
|
- skip_verify: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- archive_format: tar
|
2021-11-14 13:37:49 +01:00
|
|
|
- options: --transform 's/syncthing-{{ syncthing.os }}-{{ syncthing.arch }}-v{{ syncthing.version }}/syncthing-{{ syncthing.version }}/g' --strip 1
|
|
|
|
- if_missing: {{ syncthing.release_dir }}/syncthing-{{ syncthing.version }}
|
2020-07-10 00:58:55 +02:00
|
|
|
- watch_in:
|
|
|
|
- service: syncthing-service
|
|
|
|
|
|
|
|
syncthing-bin-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ syncthing.install_dir }}/syncthing
|
2021-11-14 13:37:49 +01:00
|
|
|
- target: {{ syncthing.release_dir }}/syncthing-{{ syncthing.version }}
|
2023-06-23 08:57:12 +02:00
|
|
|
- force: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- watch_in:
|
2021-11-14 13:37:49 +01:00
|
|
|
- service: syncthing-service
|
|
|
|
|
|
|
|
syncthing-cleanup:
|
|
|
|
software.cleanup:
|
|
|
|
- name: syncthing
|
|
|
|
- path: {{ syncthing.release_dir }}
|
2023-06-23 08:57:12 +02:00
|
|
|
- version: "{{ syncthing.version }}"
|