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