From 8802e2a98f33cc3c9e09673e82f2bc5ecd84331f Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Thu, 6 Feb 2020 15:44:29 +0000 Subject: [PATCH] try to fix noc playbook Signed-off-by: Rick Elrod --- roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 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 9b56238f0b..9db8882cc6 100644 --- a/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/aws-hosts.cfg.j2 @@ -1,5 +1,5 @@ -{% for host in groups['all']|sort %} -{% if hostvars[host].datacenter == 'ec2' and hostvars[host].nagios_Check_Services['ping'] == true %} +{% for host in groups['ec2']|sort %} +{% if hostvars[host].nagios_Check_Services['ping'] %} define host { {% if vars['nagios_location'] == 'internal' %} use defaulttemplate