rclone installation
This commit is contained in:
parent
592992f031
commit
c930ccc44a
5 changed files with 72 additions and 6 deletions
12
roles/rclone/tasks/main.yml
Normal file
12
roles/rclone/tasks/main.yml
Normal 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'
|
||||
20
roles/rclone/templates/rclone.conf.j2
Normal file
20
roles/rclone/templates/rclone.conf.j2
Normal 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 }}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue