Ansible Role blocky
This role installs and configures blocky, a DNS proxy and ad-blocker for the local network written in Go.
This Ansible role does not provide a way to template the blocky configuration file – it is simply far too dynamic. Also it does not currently support multiple blocky instances synchronizing their caches and locking state via redis. If you have multiple instances, just deploy the same config.yml to a group of blocky instances, and you will be fine.
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
String. The config YAML for blocky to deploy. |
unset |
|
Bool. Enables or disables the service, analogous to |
|
|
String. The version of blocky to install. Possible options: |
|
Example:
# optional
blocky__config_yml: '{{ lookup("ansible.builtin.file",
"{{ inventory_dir }}/group_vars/blocky/files/etc/blocky/config.yml")
}}' # example of how to deploy the config as a file
blocky__service_enabled: true
blocky__version: 'latest'