The role installs the rclone.
Example installs the latest rclone version with no configuration.
roles:
- role: rclone
roles:
- role: rclone
rclone_version: 1.54.0
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 }}"
roles:
- role: rclone
rclone_package_url: "https://downloads.rclone.org/v1.50.2/rclone-v1.50.2-linux-amd64.deb"
...
...
GPL3
OSSHelp Team, see https://oss.help