Sistemazione installazione di fallback da pacchetto upstream.
This commit is contained in:
parent
461b1caf33
commit
fe990f602f
@ -8,9 +8,22 @@
|
|||||||
register: rclone_repos
|
register: rclone_repos
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: Revert to installing from upstream package
|
||||||
|
when: rclone_repos is failed
|
||||||
|
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.
|
- name: Install rclone from upstream package.
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
url: https://downloads.rclone.org/v1.68.2/rclone-v1.68.2-linux-amd64.rpm
|
path: /tmp/rclone.rpm
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
when: rclone_repos is failed
|
|
||||||
|
- name: Cleanup
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /tmp/rclone.rpm
|
||||||
|
state: absent
|
||||||
|
Loading…
Reference in New Issue
Block a user