2024-12-23 22:58:15 +01:00
|
|
|
---
|
|
|
|
- name: (rHa) installing rclone from repositories
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: rclone
|
|
|
|
state: present
|
|
|
|
update_cache: true
|
|
|
|
become: true
|
|
|
|
register: rclone_repos
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-12-23 23:02:00 +01:00
|
|
|
- name: Revert to installing from upstream package
|
2024-12-23 22:58:15 +01:00
|
|
|
when: rclone_repos is failed
|
2024-12-23 23:02:00 +01:00
|
|
|
block:
|
|
|
|
|
|
|
|
- name: Downloading rclone rpm package
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://downloads.rclone.org/v1.68.2/rclone-v1.68.2-linux-amd64.rpm
|
|
|
|
dest: /tmp/rclone.rpm
|
|
|
|
|
|
|
|
- name: Install rclone from upstream package.
|
2024-12-23 23:04:36 +01:00
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: rpm -i /tmp/rclone.rpm
|
2024-12-23 23:02:00 +01:00
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Cleanup
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /tmp/rclone.rpm
|
|
|
|
state: absent
|