From 461b1caf333e8d59e27f00952d2d27b072cd1d1e Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 23 Dec 2024 22:58:15 +0100 Subject: [PATCH] Fallback a precedente implementazione per rclone. --- roles/rclone/tasks/install/alpine.yml | 7 +++++++ roles/rclone/tasks/install/archlinux.yml | 7 +++++++ roles/rclone/tasks/install/debian.yml | 7 +++++++ roles/rclone/tasks/install/redhat.yml | 16 ++++++++++++++++ roles/rclone/tasks/install/void.yml | 7 +++++++ roles/rclone/tasks/main.yml | 13 +++++++------ 6 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 roles/rclone/tasks/install/alpine.yml create mode 100644 roles/rclone/tasks/install/archlinux.yml create mode 100644 roles/rclone/tasks/install/debian.yml create mode 100644 roles/rclone/tasks/install/redhat.yml create mode 100644 roles/rclone/tasks/install/void.yml diff --git a/roles/rclone/tasks/install/alpine.yml b/roles/rclone/tasks/install/alpine.yml new file mode 100644 index 0000000..e13d291 --- /dev/null +++ b/roles/rclone/tasks/install/alpine.yml @@ -0,0 +1,7 @@ +--- +- name: (alp) installing rclone + community.general.apk: + name: rclone + state: present + update_cache: true + become: true diff --git a/roles/rclone/tasks/install/archlinux.yml b/roles/rclone/tasks/install/archlinux.yml new file mode 100644 index 0000000..30b8b42 --- /dev/null +++ b/roles/rclone/tasks/install/archlinux.yml @@ -0,0 +1,7 @@ +--- +- name: (arch) installing rclone + community.general.pacman: + name: rclone + state: present + update_cache: true + become: true diff --git a/roles/rclone/tasks/install/debian.yml b/roles/rclone/tasks/install/debian.yml new file mode 100644 index 0000000..0e47d19 --- /dev/null +++ b/roles/rclone/tasks/install/debian.yml @@ -0,0 +1,7 @@ +--- +- name: (deb) installing rclone + ansible.builtin.apt: + name: rclone + state: present + update_cache: true + become: true diff --git a/roles/rclone/tasks/install/redhat.yml b/roles/rclone/tasks/install/redhat.yml new file mode 100644 index 0000000..96e3c92 --- /dev/null +++ b/roles/rclone/tasks/install/redhat.yml @@ -0,0 +1,16 @@ +--- +- name: (rHa) installing rclone from repositories + ansible.builtin.package: + name: rclone + state: present + update_cache: true + become: true + register: rclone_repos + ignore_errors: true + +- name: Install rclone from upstream package. + ansible.builtin.package: + url: https://downloads.rclone.org/v1.68.2/rclone-v1.68.2-linux-amd64.rpm + state: present + become: true + when: rclone_repos is failed diff --git a/roles/rclone/tasks/install/void.yml b/roles/rclone/tasks/install/void.yml new file mode 100644 index 0000000..3cfaca3 --- /dev/null +++ b/roles/rclone/tasks/install/void.yml @@ -0,0 +1,7 @@ +--- +- name: (void) installing rclone + community.general.xbps: + name: rclone + state: present + update_cache: true + become: true diff --git a/roles/rclone/tasks/main.yml b/roles/rclone/tasks/main.yml index 02430bf..bdbbd33 100644 --- a/roles/rclone/tasks/main.yml +++ b/roles/rclone/tasks/main.yml @@ -1,12 +1,13 @@ --- # Rclone -- name: Installing rclone - ansible.builtin.package: - name: rclone - state: present - update_cache: true - become: true +- name: Installation + ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml" + args: + apply: + tags: + - rclone + - rclone-install tags: - rclone - rclone-install