chore(rclone_serve): allow adding arguments directly into rclone_serve, update README

This commit is contained in:
Johanna Dorothea Reichmann 2023-11-06 10:25:08 +01:00
parent 777e4f216d
commit e0c111ba08
No known key found for this signature in database
GPG key ID: 03624C433676E465
3 changed files with 8 additions and 3 deletions

View file

@ -25,11 +25,14 @@ rclone_serve_flags:
append-only:
```
For more variables see default/main.yml file.
When single-dash flags need to be passed to rclone (such as `-v`), use `rclone_serve_args` to list those
options in an array.
For more variables see [`defaults/main.yml`](defaults/main.yml) file.
## Dependencies
- sivel.toiletwater collection for ini templating
- Docker
- `sivel.toiletwater` ansible collection for ini templating
- Docker and python docker bindings (usually `python3-docker` or `pip3 install docker`) on the target host
## Example Playbook
```yaml

View file

@ -9,6 +9,7 @@ rclone_serve_base_path: "/opt/rclone-serve/"
rclone_serve_protocol: ~
rclone_serve_backend_config: ~
rclone_serve_flags: ~
rclone_serve_args: []
rclone_serve_backend_remote: "default"
rclone_serve_backend_path: ""

View file

@ -36,3 +36,4 @@ rclone_serve_container_command: >-
{{ rclone_serve_protocol }}
{{ rclone_serve_backend_remote }}:{{ rclone_serve_backend_path }}
{{ rclone_flags | join(' ') }}
{{ rclone_serve_args | join(' ') }}