From 011a04a71c1696e4324296f6fda281f5616c4b39 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 20 Jul 2017 00:05:46 +0000 Subject: [PATCH] do not use internal cloud ipv4 address for address here --- roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 index aa06d067e5..8ea2d502a5 100644 --- a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 @@ -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 %} +{% if hostvars[host].ansible_default_ipv4.address is defined and not in groups['cloud'] %} address {{ hostvars[host].ansible_default_ipv4.address }} {% endif %} {% else %}