diff --git a/roles/rclone_serve/README.md b/roles/rclone_serve/README.md index d233d68..f368c1a 100644 --- a/roles/rclone_serve/README.md +++ b/roles/rclone_serve/README.md @@ -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 diff --git a/roles/rclone_serve/defaults/main.yml b/roles/rclone_serve/defaults/main.yml index e8cb705..5ab410e 100644 --- a/roles/rclone_serve/defaults/main.yml +++ b/roles/rclone_serve/defaults/main.yml @@ -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: "" diff --git a/roles/rclone_serve/vars/main.yml b/roles/rclone_serve/vars/main.yml index 5a02341..c760360 100644 --- a/roles/rclone_serve/vars/main.yml +++ b/roles/rclone_serve/vars/main.yml @@ -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(' ') }}