From cdc6091079fc177c3362074327498a65075f45dd Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Thu, 6 Feb 2020 19:21:43 +0000 Subject: [PATCH] Revert "Revert "just use the hostname as the address here, because aws is weird with networking"" This reverts commit cecefbe1206479326f3b579bafef971532ac92bf. --- .../nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 | 8 -------- 1 file changed, 8 deletions(-) diff --git a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 index 9db8882cc6..7b58737675 100644 --- a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 @@ -13,15 +13,7 @@ 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 %}