try this
This commit is contained in:
parent
011a04a71c
commit
33824fb2cc
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue