๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/blocky/templates/blocky.j2

7 lines
484 B

{%- set mappings = blocky_default_mappings | items2dict(key_name='tld', value_name='resolver') -%}
{%- set conditional = { 'conditional': { 'mapping': mappings }} -%}
{%- set groups = blocky_default_groups | items2dict(key_name='selector', value_name='groups') -%}
{%- set clientGroupsBlock = { 'blocking': { 'clientGroupsBlock': groups }} -%}
{{- blocky_cfg | combine(clientGroupsBlock, recursive=true) | combine(conditional, recursive=true) | to_nice_yaml(indent=2, width=512) }}