๐Ÿ“— 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/vars/internal.yml

7 lines
457 B

blocky_default_mappings:
- tld: "{{ int_tld }}"
resolver: "{%- if services.internal_ns is mapping -%}\
{{- hostvars[services.internal_ns.hostname]['ansible_host'] -}}\
{%- else -%}\
{{- hostvars | dict2items | selectattr('key', 'in', services.internal_ns | map(attribute='hostname')) | map(attribute='value') | list | map(attribute='ansible_host') | list | join(',') -}}\
{%- endif -%}"