try to get nagios to talk to it over the vpn

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2020-02-06 19:13:03 +00:00 committed by Pierre-Yves Chibon
parent a40e911e7b
commit 0cbad706fb

View file

@ -13,12 +13,8 @@ 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 %}
{% if hostvars[host].tun0_ip is defined %}
address {{ hostvars[host].tun0_ip }}
{% else %}
address {{ host }}
{% endif %}