2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "rclone/map.jinja" import rclone with context %}
|
|
|
|
rclone-archive-extract:
|
|
|
|
archive.extracted:
|
|
|
|
- name: {{ rclone.release_dir }}
|
|
|
|
- source: {{ rclone.mirror }}/{{ rclone.version }}/rclone-{{ rclone.version }}-{{ rclone.os }}-{{ rclone.arch }}.zip
|
2020-09-12 17:41:35 +02:00
|
|
|
- skip_verify: true
|
|
|
|
- enforce_toplevel: false
|
2021-01-02 18:08:18 +01:00
|
|
|
- if_missing: {{ rclone.release_dir }}/rclone-{{ rclone.version }}-{{ rclone.os }}-{{ rclone.arch }}/rclone
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
rclone-binary-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: /usr/local/bin/rclone
|
|
|
|
- target: {{ rclone.release_dir }}/rclone-{{ rclone.version }}-{{ rclone.os }}-{{ rclone.arch }}/rclone
|
2020-09-12 17:41:35 +02:00
|
|
|
- force: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- require:
|
|
|
|
- archive: rclone-archive-extract
|