Revert "just use the hostname as the address here, because aws is weird with networking"
This reverts commit 7c1646d89358852faf5d6ef28c4e9232304af145.
This commit is contained in:
parent
bc95213c59
commit
a40e911e7b
1 changed files with 8 additions and 0 deletions
|
@ -13,7 +13,15 @@ define host {
|
|||
{% else %}
|
||||
alias {{ host }}
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
address {{ hostvars[host].ansible_default_ipv4.address }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
address {{ host }}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue