This commit is contained in:
Kevin Fenzi 2017-07-20 00:15:06 +00:00
parent 011a04a71c
commit 33824fb2cc

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 and not in groups['cloud'] %}
{% if hostvars[host].ansible_default_ipv4.address is defined and host not in groups['cloud'] %}
address {{ hostvars[host].ansible_default_ipv4.address }}
{% endif %}
{% else %}