mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
chore(rclone_serve): allow adding arguments directly into rclone_serve, update README
This commit is contained in:
parent
777e4f216d
commit
e0c111ba08
3 changed files with 8 additions and 3 deletions
|
@ -25,11 +25,14 @@ rclone_serve_flags:
|
||||||
append-only:
|
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
|
## Dependencies
|
||||||
- sivel.toiletwater collection for ini templating
|
- `sivel.toiletwater` ansible collection for ini templating
|
||||||
- Docker
|
- Docker and python docker bindings (usually `python3-docker` or `pip3 install docker`) on the target host
|
||||||
|
|
||||||
## Example Playbook
|
## Example Playbook
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
@ -9,6 +9,7 @@ rclone_serve_base_path: "/opt/rclone-serve/"
|
||||||
rclone_serve_protocol: ~
|
rclone_serve_protocol: ~
|
||||||
rclone_serve_backend_config: ~
|
rclone_serve_backend_config: ~
|
||||||
rclone_serve_flags: ~
|
rclone_serve_flags: ~
|
||||||
|
rclone_serve_args: []
|
||||||
|
|
||||||
rclone_serve_backend_remote: "default"
|
rclone_serve_backend_remote: "default"
|
||||||
rclone_serve_backend_path: ""
|
rclone_serve_backend_path: ""
|
||||||
|
|
|
@ -36,3 +36,4 @@ rclone_serve_container_command: >-
|
||||||
{{ rclone_serve_protocol }}
|
{{ rclone_serve_protocol }}
|
||||||
{{ rclone_serve_backend_remote }}:{{ rclone_serve_backend_path }}
|
{{ rclone_serve_backend_remote }}:{{ rclone_serve_backend_path }}
|
||||||
{{ rclone_flags | join(' ') }}
|
{{ rclone_flags | join(' ') }}
|
||||||
|
{{ rclone_serve_args | join(' ') }}
|
||||||
|
|
Loading…
Reference in a new issue