do not use internal cloud ipv4 address for address here

This commit is contained in:
Kevin Fenzi 2017-07-20 00:05:46 +00:00
parent 764ca81e0d
commit 011a04a71c

View file

@ -16,7 +16,7 @@ define host {
{% if hostvars[host].eth0_ip is defined %}
address {{ hostvars[host].eth0_ip }}
{% elif hostvars[host].ansible_default_ipv4 is defined %}
{% if hostvars[host].ansible_default_ipv4.address is defined %}
{% if hostvars[host].ansible_default_ipv4.address is defined and not in groups['cloud'] %}
address {{ hostvars[host].ansible_default_ipv4.address }}
{% endif %}
{% else %}