Skip to content

Ansible role for Rclone

License

Notifications You must be signed in to change notification settings

OSSHelp/ansible-rclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rclone

Build Status

Description

The role installs the rclone.

Deploy examples

Minimal

Example installs the latest rclone version with no configuration.

  roles:
    - role: rclone

With custom rclone version

Versions available.

  roles:
    - role: rclone
      rclone_version: 1.54.0

With storages and rsa key

  roles:
    - role: rclone
      storages:
        - {name: b2_storage1_name, type: b2, account: "{{ b2_storage1_account_from_vault }}", key: "{{ b2_storage1_key_from_vault }}"}
        - {name: b2_storage2_name, type: b2, account: "{{ b2_storage2_account_from_vault }}", key: "{{ b2_storage2_key_from_vault }}"}
        - {name: sftp_storage_name, type: sftp, host: storage_host, user: user_name, key_file: /root/.ssh/id_rsa.backup, md5sum_command: none, sha1sum_command: none }
        - {name: another_storage_name, type: another_type, some_key: some_value}
      backup_private_key: "{{ private_key_for_sftp_storage_from_vault }}"

The short universal example:

# vault
some_storage: {name: storage_name, type: storage_type, storage_param: param_value, storage_secret: "some_secret_here"}

# playbook
roles:
  - role: rclone
    storages:
      - "{{ some_storage }}"

The example with rsa key in vault:

# vault
backup_storage_private_key: |
  -----BEGIN RSA PRIVATE KEY-----
  MIIEogIBAAKCAQEAkbzwXuOIv0BCclEkMSNd57DIR64pLUiSZ1wCPY6bmSlg3aWX
  ...
  3kaa4TWqH9eO5hNxyJqymrXQcBj22bX+gRVOQRje6HxmBqGp8uU=
  -----END RSA PRIVATE KEY-----

# playbook
roles:
  - role: rclone
    backup_private_key: "{{ backup_storage_private_key }}"

A custom url for the rclone package

  roles:
    - role: rclone
      rclone_package_url: "https://downloads.rclone.org/v1.50.2/rclone-v1.50.2-linux-amd64.deb"

FAQ

...

Useful links

TODO

...

License

GPL3

Author

OSSHelp Team, see https://oss.help