An Ansible role to install rclone.
- Ansible 2.9
Without the following variables, rclone will be installed from the package manager of the target hosts distro. Because not all distros are immediately up to date, you can install the bleeding edge binary release from GitHub with these variables:
# use this to force using binary GitHub release instead of package manager
rclone_binary_install_version: 1.64.1
# these are from defaults/main.yml
rclone_binary_install_bin_dir: /usr/local/bin
rclone_binary_install_cache_dir: /var/cache
---
# requirements.yml
roles:
# optional: only for RHEL et al. distro install
# - src: geerlingguy.repo-epel
- name: idiv_biodiversity.rclone
src: https://github.com/idiv-biodiversity/ansible-role-rclone
version: v1.0.0
...
Write a top-level playbook:
---
- name: file transfer servers
hosts: transfer
roles:
- role: idiv_biodiversity.rclone
tags:
- rclone
...
Define the role dependency in meta/main.yml
:
---
dependencies:
- role: idiv_biodiversity.rclone
tags:
- rclone
...
MIT
This role was created in 2017 by Christian Krause aka wookietreiber at GitHub, HPC cluster systems administrator at the German Centre for Integrative Biodiversity Research (iDiv).