change get_url in combination with unarchiv or apt

This commit is contained in:
Oli
2023-02-04 16:40:03 +00:00
parent 5435284e75
commit a44b410265
8 changed files with 79 additions and 81 deletions

View File

@@ -14,14 +14,20 @@
rclone_version: "{{ rclone_version.content | replace ('rclone v', '', 1) | trim }}"
run_once: true
- name: "Install rclone {{ rclone_version }}"
apt:
deb: "https://downloads.rclone.org/v{{ rclone_version }}/rclone-v{{ rclone_version }}-linux-{{ deb_architecture }}.deb"
register: _install_package
until: _install_package is succeeded
- name: Download rclone {{ rclone_version }}
get_url:
url: "https://downloads.rclone.org/v{{ rclone_version }}/\
rclone-v{{ rclone_version }}-linux-{{ deb_architecture }}.deb"
dest: "/var/tmp/rclone.deb"
register: _download_deb
until: _download_deb is succeeded
retries: 3
delay: 5
- name: Install rclone
apt:
deb: "/var/tmp/rclone.deb"
- name: Symlink rclone binary to use mount helper
file:
src: "/usr/bin/rclone"