This is an ansible role to install and configure Plik.
Plik is a scalable & friendly temporary file upload system (Wetransfer like) in golang.
Linux machine.
The role contains default varibles in defaults/main.yml
, and should be overriden as convenient.
None.
Install the role:
ansible-galaxy install abarrak.plik_ansible_role
Include it to run the setup tasks:
- hosts: plik-server
import_role:
name: abarrak.plik_ansible_role
vars:
release_version: "1.3.6"
For plik configuration, the common parameters are available in vars as well.
For further customization (e.g. add different backends), plikd.cfg
can be pass as varible block:
toml_config: |
GoogleApiClientID = ""
GoogleApiSecret = ""
GoogleValidDomains = []
DataBackend = "gcs"
[DataBackendConfig]
Bucket = "MyAwesomeBucket"
Folder = "plik"
MIT.
Abdullah Barrak (@abarrak).