12345678910111213141516171819202122232425262728 |
- ---
- dns_records_add:
- - view: private
- zone: {{ dns_domain }}
- entries:
- {% for mst in groups['openshift_masters'] %}
- - type: A
- hostname: {{ hostvars[mst]['ansible_hostname'] }}
- ip: {{ hostvars[mst]['dns_private_ip'] }}
- {% endfor %}
- {% for node in groups['openshift_nodes'] %}
- - type: A
- hostname: {{ hostvars[node]['ansible_hostname'] }}
- ip: {{ hostvars[node]['dns_private_ip'] }}
- {% endfor %}
- - view: public
- zone: {{ dns_domain}}
- entries:
- {% for mst in groups['openshift_masters']%}
- - type: A
- hostname: {{ hostvars[mst]['ansible_hostname'] }}
- ip: {{ hostvars[mst]['dns_public_ip'] }}
- {% endfor %}
- {% for node in groups['openshift_nodes'] %}
- - type: A
- hostname: {{ hostvars[node]['ansible_hostname'] }}
- ip: {{ hostvars[node]['dns_public_ip'] }}
- {% endfor %}
|