rclone installation

This commit is contained in:
Jef Roosens 2023-12-27 21:34:51 +01:00
parent 592992f031
commit c930ccc44a
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 72 additions and 6 deletions

View file

@ -0,0 +1,12 @@
- name: Ensure Rclone is installed
ansible.builtin.apt:
name: rclone
state: present
- name: Ensure Rclone configuration file is present
ansible.builtin.template:
src: 'rclone.conf.j2'
dest: /etc/rclone.conf
owner: root
group: root
mode: '0644'

View file

@ -0,0 +1,20 @@
# Copy the config entry below in your rclone configuration file.
[ovh-s3]
type = s3
provider = Other
env_auth = false
access_key_id = {{ s3_access_key_id }}
secret_access_key = {{ s3_secret_access_key }}
acl = private
region = gra
location_constraint = gra
# API endpoint
# S3 standard endpoint
endpoint = https://s3.gra.io.cloud.ovh.net/
[photos-crypt]
type = crypt
remote = ovh-s3:pi-s3/photos
password = {{ rclone_photos_obf_pass }}
password2 = {{ rclone_photos_obf_pass2 }}