All my Ansible Playbooks
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.
 
 
 
 
 
 

28 lines
602 B

# {{ ansible_managed }}
domain-needed
bogus-priv
expand-hosts
log-queries
local-ttl=60
# Do not read the default /etc/hosts
no-hosts
# But read this one...
addn-hosts=/etc/hosts.dnsmasq
# Default suffix for all machines
domain={{ dns_suffix }}
#
# Wildcard DNS entries (see openshift_cluster_dns variable)
#
# note: will generate something like this :
# address=/app.openshift.test/192.168.23.20
#
{% for item in groups['nodes'] %}
{% if 'onlyforinfra' in hostvars[item] %}
address=/{{openshift_cluster_dns}}/{{ hostvars[item]['ansible_default_ipv4']['address'] }}
{% endif %}
{% endfor %}